cmp
Compare two files of any type
Usage: cmp file1 file2
Standard Input: Not used
Standard Output: Used to display results
Note
cmp stops after finding the first difference. No output means that the files are identical.
SEE ALSO
For more information, see page 263 |
Useful options: -l means list all the differences
Get Practical UNIX now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.