1 .TH CMP 1 "2008-1.01" "pdcore utilities" "User Commands"
3 cmp \- compare two files
8 Compare two files. If the contents are the same, produce no output and return
9 an exit status of 0. If they differ, report the line and byte position of the
10 first difference, and return an exit status of 1. An exit status of 2 will be
11 returned in the event of any error.
15 List all differences, not just the first.
18 Silent. No output under any circumstances; returns exit status only.
20 Note that options -l and -s are mutually exclusive.
24 Input files. If none provided, or the filename '-' is passed to cmp, standard
25 input will be used. Note that standard input may only be used for one of the
27 .SH "AUTHORITATIVE DOCUMENTATION"
28 <http://www.opengroup.org/onlinepubs/9699919799/utilities/cmp.html>
29 .SH VERSION AND COMPLIANCE
32 Functional compliance with POSIX:2008 (IEEE Std 1003.1-2008;
33 Shell and Utilities, Base Specifications Issue 7).
35 This is free and unencumbered software released into the public domain,
36 provided "as is", without warranty of any kind, express or implied. See the
37 file UNLICENSE and the website <http://unlicense.org> for further details.