28

I need to compare/diff/merge files in an easy way. In Dark ages when i'm a windows user I would use WinMerge. What alternatives for this are available in Ubuntu?

The things I must be able to do:

  1. See 2 files line by line next to each other, with the differences highlighted
  2. Have an option for merging this files together
muru
  • 193,181
  • 53
  • 473
  • 722
Miller
  • 573
  • 1
  • 6
  • 13
  • 4
    [Meld](https://apps.ubuntu.com/cat/applications/meld/) seems to be very popular for this. – muru Jul 22 '15 at 03:02
  • [tkdiff](http://tkdiff.sourceforge.net) and [kdiff3](http://kdiff3.sourceforge.net) are other popular options – NZD Jul 22 '15 at 06:55
  • 1
    I expect not _too_ many people on a Linux forum are earnest WinMerge users. There are things the common diff tools don't do, that WinMerge seems to breeze over. Even the plugin-s make sense once you "_get it_". Anyway I wanted to ask in context; has anyone had success using WinMerge with Wine on Linux? – will Dec 07 '15 at 12:45
  • An excellent tool is VSCode. For comparison between two files, but for folders, you'll need to have a git project. Comparing files: https://stackoverflow.com/questions/30139597/visual-studio-code-is-there-a-compare-feature-like-that-plugin-for-notepad Comparing folders: https://github.com/L13/vscode-diff For merging you can use the command git merge – danilo Apr 27 '20 at 15:53
  • Update from November 2022: With Linux Mint and Wine, WinMerge works OK (Notepad++ too). – c05772 Nov 07 '22 at 20:03
  • The big problem with using WinMerge with Wine is that the **names of files and folders in Windows are not case sensitive, in Linux they are. This causes a mess when it occurs.** Unfortunately, it is not possible to indicate WinMerge for this reason, unless they make a specific implementation to deal with these cases (workaround). – Eduardo Lucio Jan 23 '23 at 16:14
  • For more see here: https://superuser.com/q/1270588/195840 . – Eduardo Lucio Jan 23 '23 at 16:20

3 Answers3

17

I don't know if paid software can be recommended, but after testing a lot of free tools, I finally decided to go for Beyond Compare.

Meld was my previous choice but abandonned it due to instabilities during merging of very large folders.

aklmie
  • 1,036
  • 2
  • 8
  • 17
10

There are plenty of tools for this, here are a few with a GUI:

They all do pretty much the same thing, but the first two possibly offer the best user experience. Those with an asterisk are available from the Software Centre.

Luís de Sousa
  • 13,018
  • 25
  • 77
  • 128
  • 3
    I've tested all these tools and unfortunately none of them surpass WinMerge (over Wine, of course) in performance (mainly) and functionality. The closest one is Meld (very good). The only "problem" I have with WinMerge (over Wine) currently is this https://superuser.com/questions/1270588/wine-make-winmerge-treat-different-case-files-and-folders-names-as-distinct-fi?noredirect=1#comment1872965_1270588 . Thanks! – Eduardo Lucio Nov 22 '17 at 12:44
  • 1
    personally I think Beyond Compare is the best tool across platforms, and the next is winmerge. Unfortunate on Ubuntu there's no other free tool that matches winmerge's level so I use meld. – phuclv May 19 '18 at 10:24
  • 1
    Some of these look like they're from the Stone Age. – Andrew Jun 24 '19 at 19:51
  • I have curated a list of winmerge alternative with it's details, if anyone like it, here is the list: https://developingdaily.com/article/windows/best-winmerge-alternative-diff-tool-free-and-open-source/303 – Vikas Lalwani Aug 11 '22 at 12:42
6

If you like Winmerge very much and would like to continue to use it in Ubuntu like me, you can do that by using Wine Windows Program loader to install Winmerge and run the program. It runs very well for me.

I find none of the above GUI tools that come with Ubuntu to be as good as Winmerge. Maybe I am too biased for Winmerge :-)

Lester Chan
  • 61
  • 1
  • 1
  • 1
    Works great! And if you try to launch WinMerge through Wine and get an error that `mfc90u.dll` is missing, just download it from `www.dllme.com` and put it in the WinMerge root folder. – Dr_Zaszuś Oct 27 '17 at 10:30