「Linux」- 文件对比工具

解决方案

Meld – the visual diff and merge tool of GNOME

https://meldmerge.org/
Meld – Features

Meld,是在 Linux 中带有图形界面的文件对比、合并工具。具有以下特性:
1)File comparison
2)Directory comparison
3)Version control
4)Merge mode
5)Internationalization support

在桌面环境中,这是我们用的最多的文件对比工具。

安装并运行:

apt-get install meld
/usr/bin/meld # 程序文件

GNU Diffutils – Comparing and Merging Files

https://www.gnu.org/software/diffutils

在命令行,这是我们用的最多的文件对比工具。

/usr/bin/cmp
/usr/bin/diff
/usr/bin/diff3
/usr/bin/sdiff

Beyond Compare – Reconcile Your Differences

https://www.scootersoftware.com/index.php

对比二进制文件

How do I compare binary files in Linux?

我们使用最常用的命令进行二进制文件的对比:

diff <(od /path/to/file1) <(od /path/to/file2)

参考文献

How do I compare binary files in Linux?