cmp(1) | cmp(1) |
NAME
cmp - compare two ®les
SYNOPSIS
cmp
DESCRIPTION
cmp compares two ®les (if ®le1 or ®le2 is
cmp recognizes the following options:
EXTERNAL INFLUENCES
Environment Variables
LANG determines the language in which messages are displayed. If LANG is not speci®ed or is set to the empty string, a default of "C" (see lang(5)) is used instead of LANG. If any internationalization variable contains an invalid setting, cmp behaves as if all internationalization variables are set to "C". See environ(5).
International Code Set Support
Single- and
DIAGNOSTICS
cmp returns the following exit values:
0Files are identical.
1Files are not identical.
2Inaccessible or missing argument.
cmp prints the following warning if the comparison succeeds till the end of ®le of ®le1(®le2) is reached.
cmp: EOF on file1(file2)
SEE ALSO
comm(1), diff(1).
STANDARDS CONFORMANCE
cmp: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
c
− 1 − | Section 1−97 |