table of contents
other versions
- wheezy 1:6-5
| CMP(1) | General Commands Manual | CMP(1) |
NAME¶
cmp - compare two filesSYNOPSIS¶
cmp [ -lsL ] file1 file2 [ offset1 [ offset2 ] ]DESCRIPTION¶
The two files are compared. A diagnostic results if the contents differ, otherwise there is no output. The options are:- l
- Print the byte number (decimal) and the differing bytes (hexadecimal) for each difference.
- s
- Print nothing for differing files, but set the exit status.
- L
- Print the line number of the first differing byte.