The cmp program is used to do a character by character (or byte by byte) comparison of two files. It is pretty easy to tell if two files are the same size, if they are the same size and the ``compare'' the same, they are the same file. For a text file, this is probably all that using cmp can tell you. With binary files, cmp can report on the differences: where and what.