You can run an algorithm against the two, if the sum is the same, the files are the same, by running the sha1sum for example:
Code:
sha1sum /path/to/file_name
If there is a difference in the output of the sha1sum command on both, you can then use diff to compare the files line by line.