Good diff tools under Ubuntu GNOME
Asked Answered
S

6

40

Could somebody give me some recommendations on diff tools on Ubuntu? Actually what I need is not just file comparison, but also directory comparison.

I think diff tools under Windows is really most convenient, especially WinMerge.

But under Ubuntu, what I can get with high efficiency is only TkDiff, but it only support file comparison?

Hope to get some help from here.

Solberg answered 1/11, 2010 at 1:29 Comment(0)
H
71

Meld is an actively-developed, open-source GUI-based diff utility targeted at developers.

  • It is free
  • It runs on Linux
  • GNU License
  • 40+ posts tagged as meld on Stack Overflow.
  • Actively developed through February 2013 (the time of this posting)
  • Allows two and three way comparison between files and folders
  • Supports Subversion, Git, and Mercurial
Hoenir answered 20/2, 2013 at 2:43 Comment(4)
But can it open two 40M files? Nope.Blaylock
Also, altho it has a pretty face, I find that it's not too bright sometimes (Just Plain Wrong), in ways that I have never seen with WinMerge.Hundley
very easy to install goto update softwar center then search meld, then installNabonidus
It doesn't support automatic merge, as kdiff3 does. Stopper for me.Bernat
R
10

I usually use kdiff3 and happy with it. It can handle directories too.

Rigorous answered 1/11, 2010 at 1:42 Comment(3)
meld has one advantage over kdiff3 which I learned just today. meld is capable of operating with process substitution-style input: meld <(ls this) <(ls that), while kdiff3 not so much.Phanerozoic
Wojciech your answer would actually be a right answer. Process substitution is invaluable for comparisons between ssh files and other less obvious diffs.Maremma
kdiff3 resolves most conflicts automatically, meld can't do that.Gdynia
N
5

It's not free software, but Beyond Compare is now available for Linux. I haven't used the Linux version but found BC2 invaluable for merging and comparing files and directories on Windows.

Neogaea answered 1/11, 2010 at 1:38 Comment(0)
P
1

I'm using the Krusader::Synchronize Directories (Ctrl+Y) tool for this task.

It compares directories and selects a newer files to rewrite the older ones automatically, then you can check the list of the differences and compare the files content (kdiff, kompare or xxdiff) while necessary. Finally you can start the synchronize action (copying files) itself.

It is crucial for this tool to have a file timestamps (modification time) set correctly.

Propene answered 26/6, 2014 at 8:27 Comment(0)
P
1

Although not opensource, p4merge is free and available on Linux, Windows and Mac. If you are used to Perforce, it will also feel familiar.

My personal taste is kdiff3 but p4merge worth to be mentioned.

Prothalamium answered 22/8, 2016 at 17:3 Comment(0)
I
0

While I find kdiff3 utmostly confusing every time, for simple tasks I like the dirdiff utility (see its manpage). It is a graphical tool, and while not strong in features for merging, it lets you get a quick overview of relevant differences (hide non-relevant by doing "File -> Hide selection").

Inchoation answered 17/2, 2014 at 1:8 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.