‘Diff’ is a Linux tool for comparing text files. Windows Diff programs typically display the selected files side by side, with the differences highlighted. In it’s simplest form Linux Diff just displays the list of differences.
Any Diff program is a great way to figure out which of two similar files is better, or to pick out the best parts of each file. I love Diff; but as a Windows user choosing the right Diff program can be tricky.
There are many nice free Diff tools for Windows; but I have yet to find an authoritative guide to help me choose one. So I’m creating my contribution to that guide here. Please feel free to add your suggestions as comments and I will update this list accordingly. Also, feel free to use what I have here as part of a larger guide – just mention me in the credits with my name and a link.
Windows Native Diff
Windows does indeed have a built in tool. It is called ‘comp’. As a Linux fan-boy, I can only describe it’s quality as ‘tragic’. Try it on the command line, or just enjoy the simulated experience below:
Indeed. The files are, in fact, different sizes. And will I compare more files? No, the above experience is all I care to have with this tool.
comp File12.pl File1010.pl
Comparing File12.pl and File1010.pl...
Files are different sizes.
Compare more files (Y/N) ? n
DiffMerge
I’m trying out DiffMerge.
Diffmerge does feel shiny, though. It gets several things very right:
Tortoise SVN
If you’re writing code, you should be using Subversion, and if you’re using Subversion on Windows, you should be using Tortoise SVN. And if you are using Tortoise SVN, you have a very nice pair of Diff and Merge tools already integrated into Tortoise SVN.
CSDiff
CSDiff is an entirely acceptable diff tool. But having it installed next to Diffmerge, I just don’t use it anymore.
Posts
- Example Code (17)
- Programming (33)
- Random Geekiness (36)
- Security (30)
- Solutions (37)
