View previous topic :: View next topic |
Author |
Message |
Spanik l33t
Joined: 12 Dec 2003 Posts: 943 Location: Belgium
|
Posted: Mon Sep 13, 2021 9:21 am Post subject: comparing 2 directories? |
|
|
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 |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Mon Sep 13, 2021 9:58 am Post subject: |
|
|
Hi
Plz see
_________________
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30917 Location: here
|
Posted: Mon Sep 13, 2021 11:17 am Post subject: |
|
|
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 |
|
|
Spanik l33t
Joined: 12 Dec 2003 Posts: 943 Location: Belgium
|
Posted: Mon Sep 13, 2021 2:11 pm Post subject: |
|
|
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 |
|
|
Goverp Advocate
Joined: 07 Mar 2007 Posts: 2008
|
Posted: Mon Sep 13, 2021 4:43 pm Post subject: |
|
|
Also, a bit late, but there's kdiff3 for KDE users. Does directories, three-way comparisons, and merges. _________________ Greybeard |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Mon Sep 13, 2021 5:03 pm Post subject: |
|
|
Code: | diff -r <dir 1> <dir 2> |
|
|
Back to top |
|
|
Leonardo.b Apprentice
Joined: 10 Oct 2020 Posts: 297
|
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2963 Location: Edge of marsh USA
|
Posted: Tue Sep 14, 2021 3:31 am Post subject: |
|
|
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 |
|
|
|