best way to find duplicate files

Marius Gedminas marius at pov.lt
Tue Dec 9 12:41:18 UTC 2008


On Mon, Dec 08, 2008 at 12:41:34PM -0800, Noah wrote:
> I have a bunch mp3s in a bunch of subdirectories and was wondering if 
> somebody could recommend a command line program that would search for 
> duplicates and remove all but one of the files?

apt-cache show duplicate lists

  fdupes - identifies duplicate files within given directories

which seems promising.

There's also a slow Unix one-liner that can do the same thing,
inefficiently:

  find -name '*.mp3'|xargs md5sum|sort|uniq -d

Marius Gedminas
-- 
Microsoft is not the answer.
Microsoft is the question.
"No" is the answer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20081209/4dfa51c7/attachment.pgp>


More information about the ubuntu-users mailing list