From man cmp:
Code:
NAME
cmp - compare two files byte by byte
SYNOPSIS
cmp [OPTION]... FILE1 [FILE2 [SKIP1 [SKIP2]]]
Example:
Code:
$ cat > file1
hello world
$ cat > file2
hello word
$ cmp -b file1 file2
file1 file2 differ: byte 10, line 1 is 154 l 144 d
what exactly is not clear?