best way to find duplicate files

Marius Gedminas marius at
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,

  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: <>

More information about the ubuntu-users mailing list