30ea7bdf45fa053cb10a2546b0b20a5d30ca84f3
[platform/upstream/diffutils.git] / man / cmp.1
1 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.39.2.
2 .TH CMP "1" "September 2011" "diffutils 3.2" "User Commands"
3 .SH NAME
4 cmp \- compare two files byte by byte
5 .SH SYNOPSIS
6 .B cmp
7 [\fIOPTION\fR]... \fIFILE1 \fR[\fIFILE2 \fR[\fISKIP1 \fR[\fISKIP2\fR]]]
8 .SH DESCRIPTION
9 Compare two files byte by byte.
10 .PP
11 The optional SKIP1 and SKIP2 specify the number of bytes to skip
12 at the beginning of each file (zero by default).
13 .PP
14 Mandatory arguments to long options are mandatory for short options too.
15 .TP
16 \fB\-b\fR, \fB\-\-print\-bytes\fR
17 print differing bytes
18 .TP
19 \fB\-i\fR, \fB\-\-ignore\-initial\fR=\fISKIP\fR
20 skip first SKIP bytes of both inputs
21 .TP
22 \fB\-i\fR, \fB\-\-ignore\-initial\fR=\fISKIP1\fR:SKIP2
23 skip first SKIP1 bytes of FILE1 and
24 first SKIP2 bytes of FILE2
25 .TP
26 \fB\-l\fR, \fB\-\-verbose\fR
27 output byte numbers and differing byte values
28 .TP
29 \fB\-n\fR, \fB\-\-bytes\fR=\fILIMIT\fR
30 compare at most LIMIT bytes
31 .TP
32 \fB\-s\fR, \fB\-\-quiet\fR, \fB\-\-silent\fR
33 suppress all normal output
34 .TP
35 \fB\-\-help\fR
36 display this help and exit
37 .TP
38 \fB\-v\fR, \fB\-\-version\fR
39 output version information and exit
40 .PP
41 SKIP values may be followed by the following multiplicative suffixes:
42 kB 1000, K 1024, MB 1,000,000, M 1,048,576,
43 GB 1,000,000,000, G 1,073,741,824, and so on for T, P, E, Z, Y.
44 .PP
45 If a FILE is `\-' or missing, read standard input.
46 Exit status is 0 if inputs are the same, 1 if different, 2 if trouble.
47 .SH AUTHOR
48 Written by Torbjorn Granlund and David MacKenzie.
49 .SH "REPORTING BUGS"
50 Report bugs to: bug\-diffutils@gnu.org
51 .br
52 GNU diffutils home page: <http://www.gnu.org/software/diffutils/>
53 .br
54 General help using GNU software: <http://www.gnu.org/gethelp/>
55 .SH COPYRIGHT
56 Copyright \(co 2011 Free Software Foundation, Inc.
57 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
58 .br
59 This is free software: you are free to change and redistribute it.
60 There is NO WARRANTY, to the extent permitted by law.
61 .SH "SEE ALSO"
62 diff(1), diff3(1), sdiff(1)
63 .PP
64 The full documentation for
65 .B cmp
66 is maintained as a Texinfo manual.  If the
67 .B info
68 and
69 .B cmp
70 programs are properly installed at your site, the command
71 .IP
72 .B info cmp
73 .PP
74 should give you access to the complete manual.