「diffutils」

cmp
Compares two files and reports whether or in which bytes they differ

diff
Compares two files or directories and reports which lines in the files differ

diff3
Compares three files line by line

sdiff
Merges two files and interactively outputs the results

参考文献