cmp Command Examples

Compare two files byte by byte. More information: https://www.gnu.org/software/diffutils/manual/html_node/Invoking-cmp.html.

cmp {{path/to/file1}} {{path/to/file2}}

cmp --print-bytes {{path/to/file1}} {{path/to/file2}}

cmp --verbose {{path/to/file1}} {{path/to/file2}}

cmp --quiet {{path/to/file1}} {{path/to/file2}}