[talk] Comparing Executables

Sujit K M kmsujit at gmail.com
Tue Oct 6 11:56:58 EDT 2015


Hi Okan,

On Tue, Oct 6, 2015 at 9:22 PM, Okan Demirmen <okan at demirmen.com> wrote:
> On Tue, Oct 6, 2015 at 11:37 AM, Sujit K M <kmsujit at gmail.com> wrote:
>> 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.
>
> fdupes exists, or do it yourself with a similar methodology.

fdupes seems to more useful comparing non executable files. What I am
looking for
is the below scenario.

Say you compile an executable with -o flag and -g flag the executable produced
is the same application but are different if you compare with say diff.




More information about the talk mailing list