How to compare binary files to check if they are the same?

前端 未结 14 708
傲寒
傲寒 2020-12-07 09:25

What is the easiest way (using a graphical tool or command line on Ubuntu Linux) to know if two binary files are the same or not (except for the time stamps)? I do not need

14条回答
  •  悲&欢浪女
    2020-12-07 10:16

    Radiff2 is a tool designed to compare binary files, similar to how regular diff compares text files.

    Try radiff2 which is a part of radare2 disassembler. For instance, with this command:

    radiff2 -x file1.bin file2.bin
    

    You get pretty formatted two columns output where differences are highlighted.

提交回复
热议问题