CMP(3) Library Functions Manual CMP(3)

cmpcompare two files

cmp [-l | -s] file1 file2

The cmp utility compare two files and writes the byte and line number of the first difference, if any, to the standard output.

Print the byte number (decimal) and the differing byte values (octal) for each difference.
Supress all output.

The cmp utility exits with one of the following values:

0
The files are identical.
1
The files are different.
>1
An error occurred.

comm(1), diff(1)

The cmp utility is compliant with the specification.

December 29, 2019 EltaninOS