3 cmp \- compare two files
5 \fBcmp\fR [\fB\-ls\fR] \fIfile1 file2\fR
18 .FL "\-l" "Loud mode. Print bytes that differ (in octal)"
19 .FL "\-s" "Silent mode. Print nothing, just return exit status"
21 .EX "cmp file1 file2" "Tell whether the files are the same"
22 .EX "cmp \-l file1 file2" "Print all corresponding bytes that differ"
25 Two files are compared.
26 If they are identical, exit status 0 is returned.
27 If they differ, exit status 1 is returned.
28 If the files cannot be opened, exit status 2 is returned.
29 If one of the file arguments is \-, then
30 \fIstdin\fR is compared to