forked from Stichting-MINIX-Research-Foundation/minix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcmp.1
More file actions
34 lines (34 loc) · 772 Bytes
/
Copy pathcmp.1
File metadata and controls
34 lines (34 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.TH CMP 1
.SH NAME
cmp \- compare two files
.SH SYNOPSIS
\fBcmp\fR [\fB\-ls\fR] \fIfile1 file2\fR
.br
.de FL
.TP
\\fB\\$1\\fR
\\$2
..
.de EX
.TP 20
\\fB\\$1\\fR
# \\$2
..
.SH OPTIONS
.FL "\-l" "Loud mode. Print bytes that differ (in octal)"
.FL "\-s" "Silent mode. Print nothing, just return exit status"
.SH EXAMPLES
.EX "cmp file1 file2" "Tell whether the files are the same"
.EX "cmp \-l file1 file2" "Print all corresponding bytes that differ"
.SH DESCRIPTION
.PP
Two files are compared.
If they are identical, exit status 0 is returned.
If they differ, exit status 1 is returned.
If the files cannot be opened, exit status 2 is returned.
If one of the file arguments is \-, then
\fIstdin\fR is compared to
the other file.
.SH "SEE ALSO"
.BR comm (1),
.BR diff (1).