cmp is a command line utility for computer systems that use Unix or a Unix-likeoperating system. It compares two files of any type and writes the results to the standard output. By default, cmp is silent if the files are the same; if they differ, the byte and line number at which the first difference occurred is reported.
Switches
cmp may be qualified by the use of command-line switches. The switches supported by the GNU version of cmp are:
<code>-b, --print-bytes</code>
Print differing bytes.
<code>-i SKIP, --ignore-initial=SKIP</code>
Skip the first SKIP bytes of input.
<code>-i SKIP1
SKIP2, --ignore-initial=SKIP1
<code>-l, --verbose</code>
Output byte numbers and values of all differing bytes.