Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 2924  / 2 Years ago, fri, september 2, 2022, 5:44:43

I found this question already, which has a lot of good answers, but as far as I can tell none of the programs listed compare only the filenames. What program can I use to compare two directories and list which files only exist in one or other directory?



I would strongly prefer a GUI, but I'm quite capable of using command line if I must.



Additional Info



I have a lot of files (in the range of 125,000+ per directory), so the tool MUST NOT compare the contents of the files, only the filenames, or it'll take forever.


More From » files

 Answers
3

I would use a simple method, install the tree command:



sudo apt-get install tree


Run the following commands in a terminal:



tree folderA > folderA.txt
tree folderB > folderB.txt


Then use a GUI diff tool such as meld to compare both listings.


[#22836] Saturday, September 3, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
teromato

Total Points: 139
Total Questions: 102
Total Answers: 100

Location: Liechtenstein
Member since Mon, May 15, 2023
1 Year ago
;