MD5sum

To compare whether two files are really the same:

 $ md5sum file1 > ~/sum
 $ cd /other/directory/containing/copy/of/file1
 $ md5sum -c ~/sum
 file1: FAILED
 md5sum: WARNING: 1 of 1 computed checksum did NOT match