Diff is simple and easy to use, it comes pre-installed on most Linux distributions. It compares files line by line and outputs the difference between them. You can check out the manual entry for diff to easily use it. # man diff Linux diff Command to Compare Files.
The first line of the diff output contains: line numbers corresponding to the first file, a letter (a for add, c for change, or d for delete), and. line numbers corresponding to the second file.
I know of two graphical diff programs: Meld and KDiff3. I haven't used KDiff3, but Meld works well for me.
It seems that both are in the standard package repositories for openSUSE 11.0
BeyondCompare has also just been released in a Linux version.
Not free, but the Windows version is worth every penny - I'm assuming the Linux version is the same.
If you use Vim, you can use the inbuilt diff functionality. vim -d file1 file2
takes you right into the diff screen, where you can do all sort of merge and deletes.
Diffuse is also very good. It even lets you easily adjust how lines are matched up, by defining match-points.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With