Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
comparing 2 directories?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Spanik
l33t
l33t


Joined: 12 Dec 2003
Posts: 943
Location: Belgium

PostPosted: Mon Sep 13, 2021 9:21 am    Post subject: comparing 2 directories? Reply with quote

Is there software that can compare 2 directories, just like you can compare 2 text files in some editors.

Ideally I'd like to put the 2 directories next to each other, with identical files (name, extension, size, date) aligned and the differences highlighted.
_________________
Expert in non-working solutions
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Mon Sep 13, 2021 9:58 am    Post subject: Reply with quote

Hi

Plz see

Code:

dev-util/meld

_________________
:)
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30917
Location: here

PostPosted: Mon Sep 13, 2021 11:17 am    Post subject: Reply with quote

Also with diff -q directory-1/ directory-2/ or with two terminal and tree command.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Spanik
l33t
l33t


Joined: 12 Dec 2003
Posts: 943
Location: Belgium

PostPosted: Mon Sep 13, 2021 2:11 pm    Post subject: Reply with quote

Thanks for the pointers!

I emerged meld after reeading the site a bit. But for some funny reason on my pc it is in a mixture of french and english... Probably because the laptop is all set in english but the keyboard is french.

Diff is a bit more simplistic but ok for some things.
_________________
Expert in non-working solutions
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2008

PostPosted: Mon Sep 13, 2021 4:43 pm    Post subject: Reply with quote

Also, a bit late, but there's kdiff3 for KDE users. Does directories, three-way comparisons, and merges.
_________________
Greybeard
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Mon Sep 13, 2021 5:03 pm    Post subject: Reply with quote

Code:
diff -r <dir 1> <dir 2>
Back to top
View user's profile Send private message
Leonardo.b
Apprentice
Apprentice


Joined: 10 Oct 2020
Posts: 297

PostPosted: Mon Sep 13, 2021 11:05 pm    Post subject: Reply with quote

A similar topic:
https://forums.gentoo.org/viewtopic-t-1135107-highlight-.html
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2963
Location: Edge of marsh USA

PostPosted: Tue Sep 14, 2021 3:31 am    Post subject: Reply with quote

alamahant wrote:
...
Code:

dev-util/meld

Thanks for reminding me of meld. I've had trouble remembering it. I had to write my own desktop file for it:
Code:
$ cat ~/.local/share/applications/meld.desktop
[Desktop Entry]
Categories=Application;Accessories;Utility;
Comment=File and Directory Differences
Encoding=UTF-8
Exec=/usr/bin/meld
Icon=folder
MimeType=
Name=Meld diff
Terminal=false
Type=Application

Definitely minimal, but at least it adds it to the menu.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum