Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I need a binary comparison tool for Win/Linux [closed]

First of all, I don't need a textual comparison so Beyond Compare doesn't do what I need.

I'm looking for a util that can report on the differences between two files, at the byte level. Bare minimum is the need to see the percentage change in the file, or a report on affected bytes/sectors.

Is there anything available to save me the trouble of doing this myself?

like image 877
Dan Avatar asked Jul 16 '26 22:07

Dan


2 Answers

I found VBinDiff. I haven't used it, but it probably does what you want.

like image 119
Mark Avatar answered Jul 18 '26 12:07

Mark


I guess it depends on what exactly is contained in the file, but here's a quick one:

hexdump file1 > file1.tmp
hexdump file2 > file2.tmp
diff file1.tmp file2.tmp

Since 16 bytes are typically reported on each line, this won't technically give you a count of the bytes changed, but will give you a rough idea where in the file changes have occurred.

like image 42
Steve Moyer Avatar answered Jul 18 '26 12:07

Steve Moyer