| 1 |
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.5. |
| 2 |
.TH CMP "1" "April 2025" "diffutils 3.12" "User Commands" |
| 3 |
.SH NAME |
| 4 |
cmp \- compare two files byte by byte |
| 5 |
.SH SYNOPSIS |
| 6 |
.B cmp |
| 7 |
[\fI\,OPTION\/\fR]... \fI\,FILE1 \/\fR[\fI\,FILE2 \/\fR[\fI\,SKIP1 \/\fR[\fI\,SKIP2\/\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=\fI\,SKIP\/\fR |
| 20 |
skip first SKIP bytes of both inputs |
| 21 |
.TP |
| 22 |
\fB\-i\fR, \fB\-\-ignore\-initial\fR=\fI\,SKIP1\/\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=\fI\,LIMIT\/\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\[email protected] |
| 51 |
.br |
| 52 |
GNU diffutils home page: <https://www.gnu.org/software/diffutils/> |
| 53 |
.br |
| 54 |
General help using GNU software: <https://www.gnu.org/gethelp/> |
| 55 |
.SH COPYRIGHT |
| 56 |
Copyright \(co 2025 Free Software Foundation, Inc. |
| 57 |
License GPLv3+: GNU GPL version 3 or later <https://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 |
.BR diff (1), |
| 63 |
.BR diff3 (1), |
| 64 |
.BR sdiff (1) |
| 65 |
.PP |
| 66 |
The full documentation for |
| 67 |
.B cmp |
| 68 |
is maintained as a Texinfo manual. If the |
| 69 |
.B info |
| 70 |
and |
| 71 |
.B cmp |
| 72 |
programs are properly installed at your site, the command |
| 73 |
.IP |
| 74 |
.B info cmp |
| 75 |
.PP |
| 76 |
should give you access to the complete manual. |