3 cmp \- compare two files
5 \fBcmp\fR [\fB\-ls\fR] \fIfile1 file2\fR
20 # Loud mode. Print bytes that differ (in octal)
23 # Silent mode. Print nothing, just return exit status
27 # Tell whether the files are the same
29 .B cmp \-l file1 file2
30 # Print all corresponding bytes that differ
33 Two files are compared.
34 If they are identical, exit status 0 is returned.
35 If they differ, exit status 1 is returned.
36 If the files cannot be opened, exit status 2 is returned.
37 If one of the file arguments is \-, then
38 \fIstdin\fR is compared to