ProAnswers.org

What difference between cmp and diff commands?

cmp – Compares two files byte by byte and displays the first mismatch

diff – tells the changes to be made to make the files identical