Ask Question

What happens when you use diff to compare two binary files that are not identical? (You can use gzip to create the binary files.) Explain why the diff output for binary files is different from the diff output for ASCII files.

+4
Answers (1)
  1. 9 June, 18:41
    0
    When there's a comparison between binary files with diff, there's a message from the utility that says there's a difference when the files differ or there's no message when the two are same. ASCII files comparison is made by the diff utility line-by-line. there's no provision to make comparisons on a byte by byte basis. in that case use cmp.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What happens when you use diff to compare two binary files that are not identical? (You can use gzip to create the binary files.) Explain ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers