not sure why but when I click on synchronize directories, it shows identical files as different.

enter image description here

How do I get these files to not show as different?

  • Well, the files are different sizes so they are not identical. were they created or edited on different operating systems? – EBGreen Mar 28 '18 at 13:35
  • They are identical by content, and I selected the checkbox "by Content". What else can I do so that TC ignores file size? I dont see such option. – monstro Mar 28 '18 at 13:47
  • If they have different line ending characters they are not identical by content. You would not see the difference but a file comparison at the byte level would. I suspect that this is the cause of the issue that you are seeing. Here is an article discussing using Total Commander and comparing files while ignoring line endings. ghisler.ch/board/viewtopic.php?p=264342 Essentially you need to tell TC to use an external file comparison tool and configure that tool to ignore line endings. – EBGreen Mar 28 '18 at 13:55
  • I understand, but as a regular user, I shouldn't bother with all these details, so I understood it is not possible to compare these files properly using TC? only external folder comparison application? – monstro Mar 28 '18 at 14:12
  • 1
    The "binary" check box visible in the above screenshot would probably be enough to show you the difference. Note "unix style" line endings are 1 byte (for... line feed?) and the windows style is 2-byte (carriage return & line feed), the file depicted is 8 bytes larger, and there are 8 line endings – Yorik Mar 28 '18 at 14:15

I believe that it has more something to do with the 'line termination' of different platforms.

The file on the left (156 bytes) should have CRLF endings (2 bytes for every 'new line' character) (Windows/DOS platform).

The file on the right (148 bytes) should have LF endings (1 byte for every 'new line' character) (Linux/UNIX platform).

Because of the 9 lines (and 8 EOLs [End of Line]), this makes a difference of 8 bytes while the other contents in those files remains the same.


Install BeyondCompare (e.g. version 4).
After install for Compare set
- Arguments: %1 %2 /title1=%6 /title2=%7
- Extension: .*

Afterwards you can use it from Total Commander context menu like screenshot shows:

Select Left File For Compare Compare to \"selected left file

  • Beyond Compare costs money – monstro Apr 24 '18 at 12:29

in IT domain knowledge, people compare hash values to decide identical files.

There are few hash methods, the common ones are MD5 and SH1. You can google with keywords: MD5 checksum and / or SH1 checksum

Back to total commander, this website gives you hint how to use total commander add-ons which giving you MD5 / SH1 hash comparison.


that is, back to your question, the answer is: do not use compare content. Use hash methods to compare files.

  • 1
    Well, in this case the MD5 and the SH1 (and any other hashing algorithm that I know of) would show the files as different which is not what the OP wants. – EBGreen Mar 28 '18 at 13:51
  • You are missing the point. Using a hash would show the two files as different. The poster wants Total Commander to see the files as the same not different. – EBGreen Mar 28 '18 at 14:12
  • EBGreen, exactly! As on the screenshot I provided, two files are identical by visible content (file size is different, no idea why and dont care), I see the content is the same and I want TC to show these files as identical, is it possible? – monstro Mar 28 '18 at 14:16
  • Yes, according to the link I provided it is possible. You just need to tell Total Commander to use a comparison tool that can ignore line endings. – EBGreen Mar 28 '18 at 14:24
  • @monstro... you need to be careful, the difference may not be at the end of file. It is possible to have non-printable-characters in the middle between for..loop for example... therefore as i wrote above, you need to change how you comparing files – Hongkie Mar 28 '18 at 14:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.