Hello,
I would like to know if we can compare binary(non text) files in unix
eg. exes
Thanks
Saurabh
Hello,
I would like to know if we can compare binary(non text) files in unix
eg. exes
Thanks
Saurabh
Below, I copy ots to another location; meaning both files are identical.
The 2nd line diff command returns nothing; confirming that the files are identical.
I then compare two slightly different versions of the file; and get the message that the binary files are different.
> cp otsort ../cbin2/ots_orig
> diff otsort ../cbin2/ots_orig
> diff ots ots64
Binary files ots and ots64 differ
Also check out the cmp command.
Are you trying to get version information? try ident.
If you are trying to see that compiled image files are identical, try md5 or cksum