DOS had a command fc,which was used to compare the files in binary mode, I am a bit stuck with the concept of comparing the files.Why do we compare the files in binary mode? And how does the fb command work?

  • 1
    ERROR Unbelievable nobody corrected you. It is FC as in File Compare. Your question should be what the heck or what specifically, is comparing files in text mode! Comparing in binary mode should be pretty obvious. It compares the 1s and 0s.. so would see if the file is identical. Text mode might miss out differences involving certain characters, those that are perhaps, non printable non graphical, something like that. If any of them are in the file. – barlop Feb 24 '12 at 18:38
  • @barlop: So, by using fb command, we can also compare images. That seems good. – Fahad Uddin Feb 26 '12 at 6:27
  • 1
    YES BUT IT IS FC MAN "FILE COMPARE" FC. Why do you keep typing fb do you use facebook every single second of your life? – barlop Feb 26 '12 at 10:40
  • I am really sorry I am a facebook addict. – Fahad Uddin Feb 26 '12 at 11:34
  • 1
    Typos happen, don't worry about it. And few users on this site are as rude about it as @barlop. He probably should have edited your question himself if he was sure it's a typo. – Daniel Beck Feb 26 '12 at 11:53

You compare files in binary mode when the files are not text files with well-known end-of-line terminators or line-separators. An example might be some binary data files. In that case you might want to see the offset and hexadecimal values of differences rather than display some before and after versions of text.

See this question and this list

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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