windows 我需要一个适用于 Win/Linux 的二进制比较工具

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/98693/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 11:14:49  来源:igfitidea点击:

I need a binary comparison tool for Win/Linux

linuxwindowsbinarycomparison

提问by Dan

First of all, I don't need a textual comparison so Beyond Compare doesn't do what I need.

首先,我不需要文本比较,所以 Beyond Compare 不会做我需要的。

I'm looking for a util that can report on the differences between two files, at the byte level. Bare minimum is the need to see the percentage change in the file, or a report on affected bytes/sectors.

我正在寻找一个可以在字节级别报告两个文件之间差异的实用程序。最低限度是需要查看文件中的百分比变化,或有关受影响字节/扇区的报告。

Is there anything available to save me the trouble of doing this myself?

有什么可以避免我自己做这件事的麻烦吗?

回答by Mark

I found VBinDiff. I haven't used it, but it probably does what you want.

我找到了VBinDiff。我没有用过它,但它可能会做你想要的。

回答by Steve Moyer

I guess it depends on what exactly is contained in the file, but here's a quick one:

我想这取决于文件中包含的内容,但这里有一个快速的:

hexdump file1 > file1.tmp
hexdump file2 > file2.tmp
diff file1.tmp file2.tmp

Since 16 bytes are typically reported on each line, this won't technically give you a count of the bytes changed, but will give you a rough idea where in the file changes have occurred.

由于每行通常报告 16 个字节,因此从技术上讲,这不会为您提供更改的字节数,但可以让您大致了解文件中发生更改的位置。

回答by Lucas S.

UltraCompareis the best for binary comparison. It has a smart comparator that is really useful.

UltraCompare是二进制比较的最佳选择。它有一个非常有用的智能比较器。

回答by Bauna

You can use xdelta. This is open source binary diff tool that you can use then to make binary patches, but I think it also gives the information about differences found.

您可以使用xdelta。这是开源二进制差异工具,您可以使用它来制作二进制补丁,但我认为它也提供了有关发现差异的信息。

回答by armel

ECMerge recently introduced a binary differ, it can compare files of several giga bytes (the limit is somewhere above the terabyte). it works on linux, windows, mac os x and solaris. it gives you byte by byte or block per block statistics.

ECMerge 最近推出了一个二进制差异,它可以比较几个千兆字节的文件(限制在tera字节以上)。它适用于 linux、windows、mac os x 和 solaris。它为您提供逐字节或每块数据块的统计信息。

You can parameter synchronization window (if desired) and minimal match.

您可以参数同步窗口(如果需要)和最小匹配。

回答by Dara Kong

There's Araxis Mergeavailable for windows. Here's a pagethat describes their binary comparison feature.

有适用于 Windows的Araxis Merge。这是一个页面,描述了他们的二进制比较功能。