[talk] Comparing Executables

Malcolm Matalka mmatalka at gmail.com
Tue Oct 6 12:00:44 EDT 2015


Sujit K M <kmsujit at gmail.com> writes:

> Hi All,
>
> I was of the opinion that all files including executables can be renamed.
> Hoping this is true, Is there a sleek way in UNIX to find if the two files are
> the same. One thing that comes to my mind is to write a program in C to
> read both the binaries and comparing. The other simpler alternative is to
> use scripting, I don't think we will be stretched to use Python Or Perl.
> But Awk/Sed etc.
>
> Would love to get a feedback.

I would just md5 or sha256 then and verify the output is the same.  That
assumes they are to be bit equal, which may not be the case if they were
compiled at different times.

>
> Regards,
> Sujit K M
>
> _______________________________________________
> talk mailing list
> talk at lists.nycbug.org
> http://lists.nycbug.org/mailman/listinfo/talk




More information about the talk mailing list