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.

What will be an ideal response?

When you use it to compare binary files, diff displays a message saying the
files differ when the files differ or no message when the files are the same.
The diff utility compares ASCII files on a line-by-line basis; it is not designed
to compare binary files on a byte-by-byte basis. Use cmp to compare binary
files in that manner.

Computer Science & Information Technology

You might also like to view...

What security related area specified in FIPS 200 ensures that actions can be traced to individual users of an information system so they can be held accountable?

A. Access control B. Audit and accountability C. Incident response D. Maintenance

Computer Science & Information Technology

Office applications use your personal libraries and folders, such as ____, as a default location for storing files.

A. Folders B. Documents C. Office Documents D. Your Documents

Computer Science & Information Technology