Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
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
show 1 more comment

1 Answer

up vote 3 down vote accepted

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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