Linux – How to Perform Binary Diff on Identical Files

diff()linux

I have two identically sized files, and I need to do a binary diff to check whether they're the same.

I'm currently runnnig diff file1.img file2.img but it's taking quite a while to process my 4 GB files. Is this the most efficient way to do this?

Best Answer

cmp is designed to find differences in binary files. You might also try checksumming (sum) and compare the hashes.

Related Question