next up previous contents
Next: Time a command or Up: Other useful commands Previous: Finding the differences between   Contents

Finding the differences between two binary files

Use the command cmp to check if two binary files are different. The command cmp does not list differences like the diff command. However it is handy for a fast check of whether two binary files are the same or not.

[amit@dslamit cs253]$ cmp /bin/ls /bin/cat
/bin/ls /bin/cat differ: byte 25, line 1
[amit@dslamit cs253]$



Amit Jain 2009-08-23