$ whatis cmp

cmp cmp (1) - compare two files byte by byte

Examples:

First, let's see the contents of the two files 'file1.txt and file2.txt'.

    cat file1.txt
  1. cat file1.txt
  2. cat file2.txt
  3. cat file1and2.txt
  4. cmp file1.txt file1.txt
  5. cmp -s file1.txt file1.txt

Please click on " cmp in PDF " format.

Please click on " cmp in HTML " format.