1CMP(1)                           User Commands                          CMP(1)
2
3
4

NAME

6       cmp - compare two files byte by byte
7

SYNOPSIS

9       cmp [OPTION]... FILE1 [FILE2 [SKIP1 [SKIP2]]]
10

DESCRIPTION

12       Compare two files byte by byte.
13
14       -b  --print-bytes
15              Print differing bytes.
16
17       -i SKIP  --ignore-initial=SKIP
18              Skip the first SKIP bytes of input.
19
20       -i SKIP1:SKIP2  --ignore-initial=SKIP1:SKIP2
21
22              Skip the first SKIP1 bytes of FILE1 and the first SKIP2 bytes of
23              FILE2.
24
25       -l  --verbose
26              Output byte numbers and values of all differing bytes.
27
28       -n LIMIT  --bytes=LIMIT
29              Compare at most LIMIT bytes.
30
31       -s  --quiet  --silent
32              Output nothing; yield exit status only.
33
34       -v  --version
35              Output version info.
36
37       --help Output this help.
38
39       SKIP1 and SKIP2 are the number of bytes to skip  in  each  file.   SKIP
40       values  may  be  followed  by the following multiplicative suffixes: kB
41       1000,  K  1024,  MB  1,000,000,  M  1,048,576,  GB   1,000,000,000,   G
42       1,073,741,824, and so on for T, P, E, Z, Y.
43
44       If a FILE is `-' or missing, read standard input.
45

AUTHOR

47       Written by Torbjorn Granlund and David MacKenzie.
48

REPORTING BUGS

50       Report bugs to <bug-gnu-utils@gnu.org>.
51
53       Copyright © 2002 Free Software Foundation, Inc.
54
55       This  program  comes  with NO WARRANTY, to the extent permitted by law.
56       You may redistribute copies of this program under the terms of the  GNU
57       General  Public License.  For more information about these matters, see
58       the file named COPYING.
59

SEE ALSO

61       The full documentation for cmp is maintained as a Texinfo  manual.   If
62       the info and cmp programs are properly installed at your site, the com‐
63       mand
64
65              info diff
66
67       should give you access to the complete manual.
68
69
70
71diffutils 2.8.1                  November 2010                          CMP(1)
Impressum