cmp - compare files
$ cmp [options...] file1 file2
Compare two files and report the location of any differences. By default, execution stops after the first difference, but this can be overridden (see --verbose
option). Byte and line numbers start at 1.
--help
: Display help message and exit-l
, --verbose
: Output the byte number, and the differing bytes, for every difference.-s
, --silent
: Silence output.file1
and file2
: Files to compare. Use -
as the file name to read from standard input.