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       The optional SKIP1 and SKIP2 specify the number of bytes to skip at the
15       beginning of each file (zero by default).
16
17       Mandatory arguments to long options are  mandatory  for  short  options
18       too.
19
20       -b, --print-bytes
21              print differing bytes
22
23       -i, --ignore-initial=SKIP
24              skip first SKIP bytes of both inputs
25
26       -i, --ignore-initial=SKIP1:SKIP2
27              skip first SKIP1 bytes of FILE1 and first SKIP2 bytes of FILE2
28
29       -l, --verbose
30              output byte numbers and differing byte values
31
32       -n, --bytes=LIMIT
33              compare at most LIMIT bytes
34
35       -s, --quiet, --silent
36              suppress all normal output
37
38       --help display this help and exit
39
40       -v, --version
41              output version information and exit
42
43       SKIP  values  may be followed by the following multiplicative suffixes:
44       kB 1000, K  1024,  MB  1,000,000,  M  1,048,576,  GB  1,000,000,000,  G
45       1,073,741,824, and so on for T, P, E, Z, Y.
46
47       If  a FILE is '-' or missing, read standard input.  Exit status is 0 if
48       inputs are the same, 1 if different, 2 if trouble.
49

AUTHOR

51       Written by Torbjorn Granlund and David MacKenzie.
52

REPORTING BUGS

54       Report bugs to: bug-diffutils@gnu.org
55       GNU diffutils home page: <https://www.gnu.org/software/diffutils/>
56       General help using GNU software: <https://www.gnu.org/gethelp/>
57
59       Copyright © 2021 Free Software Foundation, Inc.   License  GPLv3+:  GNU
60       GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
61       This  is  free  software:  you  are free to change and redistribute it.
62       There is NO WARRANTY, to the extent permitted by law.
63

SEE ALSO

65       diff(1), diff3(1), sdiff(1)
66
67       The full documentation for cmp is maintained as a Texinfo  manual.   If
68       the info and cmp programs are properly installed at your site, the com‐
69       mand
70
71              info cmp
72
73       should give you access to the complete manual.
74
75
76
77diffutils 3.8                    January 2022                           CMP(1)
Impressum