1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.33.
2 .TH CMP "1" "April 2004" "diffutils 2.8.7" "User Commands"
4 cmp \- compare two files byte by byte
7 [\fIOPTION\fR]... \fIFILE1 \fR[\fIFILE2 \fR[\fISKIP1 \fR[\fISKIP2\fR]]]
9 Compare two files byte by byte.
11 \fB\-b\fR \fB\-\-print\-bytes\fR
12 Print differing bytes.
14 \fB\-i\fR SKIP \fB\-\-ignore\-initial\fR=\fISKIP\fR
15 Skip the first SKIP bytes of input.
17 \fB\-i\fR SKIP1:SKIP2 \fB\-\-ignore\-initial\fR=\fISKIP1\fR:SKIP2
19 Skip the first SKIP1 bytes of FILE1 and the first SKIP2 bytes of FILE2.
21 \fB\-l\fR \fB\-\-verbose\fR
22 Output byte numbers and values of all differing bytes.
24 \fB\-n\fR LIMIT \fB\-\-bytes\fR=\fILIMIT\fR
25 Compare at most LIMIT bytes.
27 \fB\-s\fR \fB\-\-quiet\fR \fB\-\-silent\fR
28 Output nothing; yield exit status only.
30 \fB\-v\fR \fB\-\-version\fR
36 SKIP1 and SKIP2 are the number of bytes to skip in each file.
37 SKIP values may be followed by the following multiplicative suffixes:
38 kB 1000, K 1024, MB 1,000,000, M 1,048,576,
39 GB 1,000,000,000, G 1,073,741,824, and so on for T, P, E, Z, Y.
41 If a FILE is `-' or missing, read standard input.
42 Exit status is 0 if inputs are the same, 1 if different, 2 if trouble.
44 Written by Torbjorn Granlund and David MacKenzie.
46 Report bugs to <bug-gnu-utils@gnu.org>.
48 Copyright \(co 2004 Free Software Foundation, Inc.
50 This is free software; see the source for copying conditions. There is NO
51 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
53 The full documentation for
55 is maintained as a Texinfo manual. If the
59 programs are properly installed at your site, the command
63 should give you access to the complete manual.