To compare two files using Linux
Most Unix/Linux distributions comes with a utility called diff
.
It’s incredibly easy to compare two files with diff
, you simply do this:
diff file1 file2
All the differences will be printed out in an easy to understand format.