Sample Header Ad - 728x90

Unix or Linux command to compare binary files

2 votes
1 answer
155 views
I'm looking for a command that compares binary files. Of course, I know about diff, but it is not very good at binaries. I have two files from a error-prone source (scratched dvd) which should be equal but aren't. (Well, realy more than two, and I get about 6 different md5sum out of 15 samples.) I'm looking for a tool that lists the positions where the files differ. --- In addition to the accepted answer, xxd looks good as it can also be used to change back edited hex-files to binary.
Asked by Gyro Gearloose (455 rep)
May 9, 2025, 07:25 PM
Last activity: May 14, 2025, 05:02 PM