Question - What is the behavioral difference between “cmp” and “diff” commands?
Answer -
Both commands are used for file comparison.
- Cmp – Compare given two files with byte by byte and display the first mismatch.
- Diff – Display changes that need to do to make both files identical.