CMP(1) UNIX Reference Manual CMP(1) NNAAMMEE ccmmpp - Compare two files. SSYYNNOOPPSSIISS ccmmpp [--ll | --ss] _f_i_l_e_1 _f_i_l_e_2 DDEESSCCRRIIPPTTIIOONN The cmp utility compares two files of any type and writes the results to the standard output. Under default options, ccmmpp is silent if the files are the same; if they differ, the byte and line number at which the first difference occurred is reported. Bytes and lines are numbered beginning with one. The following options are available: --ll Print the byte number (decimal) and the differing byte values (oc- tal) for each difference, respectively. --ss Print nothing for differing files; return exit status only. The following operands are available: _f_i_l_e_1 A pathname of the first file to be compared. If _f_i_l_e_1 is `--', the standard input is used. _f_i_l_e_2 A pathname of the second file to be compared. The ccmmpp utility exits with one of the following values: 0 The files are identical. 1 The files are different; this includes the case where one file is identical to the first part of the other. In the latter case, if the --ss option has not been specified, cmp writes to standard error that EOF was reached in the shorter file (before any differences were found). >1 An error occurred. SSEEEE AALLSSOO diff(1), diff3(1) SSTTAANNDDAARRDDSS The ccmmpp function is expected to be POSIX 1003.2 compatible. This manual page is derived from the POSIX 1003.2 manual page.