cmp is a command line utility for computer systems that use Unix or a Unix-like operating system.It compares two files of any type and writes the results to the standard output
By default, cmp is silent if the files are the same; if they differ, the byte and line number at which the first difference occurred is reported.
Return values:
0 —> files are identical
1 —> files differ
2 —> inaccessible or missing argument
Read more