FENIX_coreutils/cmp.1

33 lines
853 B
Groff
Executable File

.TH CMP 1
.SH NAME
cmp \- compare two files
.SH SYNOPSIS
.B cmp
[\fB\-l\fR|\fB\-s\fR]
.IR file1
.IR file2
.SH DESCRIPTION
.B cmp
compares two files. If the two files are identical, \fBcmp\fR writes
no output. Otherwise, by default, it outputs the byte and line
number of the first difference.
.PP
If the two files are of different lengths, \fBcmp\fR also writes the
name of the shorter file to stderr.
.SH OPTIONS
.TP
.BR \-l
.TP
Outputs the byte number and differing byte for each difference
.BR \-s
Suppresses all output, even when the files differ. If the two files
are of differing lengths, it also suppresses that notice. A
difference in the two files is indicated through exit status only.
.SH AUTHOR
Written by Kat.
.SH COPYRIGHT
Copyright (C) 2019 Katlynn Richey
.PP
This software is free software. Feel free to modify it and/or pass
it around.