Questions tagged [duplicate-files]

58 questions
29
votes
5 answers

How to delete duplicate files with fdupes?

When I run fdupes it finds more than 30,000 duplicate files. I need to keep one file and delete all the other duplicates (because some of them are systemfiles). Please give me a command or script to do this without pressing "1 or 2 or all" for each…
user84055
  • 493
9
votes
4 answers

Is there a way to find duplicate images in Ubuntu?

I am wondering if there is a way to compare folders in Ubuntu? I have tried to organize my photo folders many times...and for this reason I have several folders that contain the same files (maybe a couple of extra ones) and it would be great to have…
Elysium
  • 11,012
7
votes
3 answers

How to find ONLY duplicate files that have different names?

FSlint can find duplicate files. But suppose one has 10,000 songs or images and wants to find ONLY those files that are identical but have different names? Right now, I get a list that has hundreds of dupes (in different folders). I want the names…
5
votes
1 answer

How to clean duplicates existing in one folder from another recursively?

Summary: Folder A has only many Excelent files Folder B has many folders of mixed Excelent/Good/Bad files How can I delete files in Folder B folders only in case they will be in Folder A. In other words, how to check if Folder A files exist in…
Kangarooo
  • 5,075
1
vote
1 answer

Find duplicate files: keep older version

I need a command line tool to remove duplicate files. There are several. But I could not find one which always keeps the older files and deletes the newer versions. I tried finddup, duff, fdupes. Maybe I was blind, but AFAIK there was not way to…
guettli
  • 1,777
0
votes
1 answer

Sort duplicates within a file based upon identifying the duplicates from the content within the first column

I have a file called "my_file" containing a mix of md5 hashes and file path names. I'd like to be able to identify one duplicate (not sort -u) hash value contained in the first column; also displaying the associated file path in the following…