Discussion:
finding duplicate files in lunux
(too old to reply)
rsina
2004-07-01 15:16:50 UTC
Permalink
How do we look for duplicate files in different directories on the hard
disk?

Thanks,
Suse 9.1
Digitlcoup
2004-07-01 15:25:57 UTC
Permalink
Post by rsina
How do we look for duplicate files in different directories on the hard
disk?
Thanks,
Suse 9.1
You might try this: http://midori.shacknet.nu/dff/ or you could create a
quick perl script using the File::Find module. I suppose it would depend
on what you consider to be "duplicate". Are we just talking about
duplicate filename, or duplicate filename and/or content,modification
date, etc?
--
Hackattack v1.1 Download: http://www.digitlcoup.org/
rsina
2004-07-01 15:54:28 UTC
Permalink
Thanks for the quick replies. I am looking to find duplicates of the
content, both binary and text files, perhaps some with different filenames.
I don't need a fancy interface, just one that scans a directory and points
out duplicate files that may exist in the different sub-directories.
I will try the lik you mentioned.

Thanks again,
Ramin
Post by Digitlcoup
Post by rsina
How do we look for duplicate files in different directories on the hard
disk?
Thanks,
Suse 9.1
You might try this: http://midori.shacknet.nu/dff/ or you could create a
quick perl script using the File::Find module. I suppose it would depend
on what you consider to be "duplicate". Are we just talking about
duplicate filename, or duplicate filename and/or content,modification
date, etc?
--
Bit Twister
2004-07-01 15:29:04 UTC
Permalink
Post by rsina
How do we look for duplicate files in different directories on the hard
disk?
With same name or same contents different names.

Here how I files in one directory with another
#****************************************************************
#*
#* compare directory files contents
#*
#* You have to cd to where you want to start comparing
#*
#****************************************************************

for file in `find . -type f
do
_fn=${file:2}
echo -e "\nchecking $_fn\n"
diff -bBw $file ~bittwister/${_fn}
done

#***************** end script ************************************
Abdullah Ramazanoglu
2004-07-05 16:37:35 UTC
Permalink
Post by rsina
How do we look for duplicate files in different directories on the
hard disk?
Thanks,
Suse 9.1
Try fdupes.
Also there is fdupeimages that finds "similar" images (level of
similarity required adjustable).

They both are included in Debian, possibly in Suse too - I don't
know.
--
Abdullah | aramazan@ |
Ramazanoglu | myrealbox |
________________| D O T cöm |
rewanya
2016-01-18 11:29:44 UTC
Permalink
I use Duplicate Files Deleter as it is very effective. It is 100% accurate and performs the scan quickly.
Loading...