removing duplicate MP3s

Charlie Brune Ubuntu at
Sun Jun 14 01:37:10 UTC 2009

NoOp wrote:
> On 06/11/2009 09:10 AM, Charlie Brune wrote:
>> admin2 wrote:
>>> Hi list,
>>> I am looking for an automated application that can look at MP3s and 
>>> remove the duplicate file names that could spread across multiple 
>>> directories.  Is there such an animal?
>>> Cheers,
>>> Noah
>> Are you really looking just to delete files that have the same file name
>> or do you really want to delete files that have exactly the same content?
>> For example, I had the problem where a picture I took with my digital
>> camera was saved in one directory as "DSC011823.JPG" and in another
>> directory as "Charlie_Has_A_New_Hat.JPG".
>> I wanted to delete duplicates of this nature and I used "fdupes" to do
>> it. Fdupes looks at the contents of the files, NOT the filenames.
>> Perfect for me.
>> I did:
>> fdupes -r mypictures/
>> I ended up piping the results of this command into a file and editing it
>> to create a bash script to delete files I didn't want.
> Cool! But you forgot to mention that you must install it first :-)
> $ man fdupes
> No manual entry for fdupes
> $ sudo apt-get install -s fdupes
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following NEW packages will be installed:
>   fdupes
> 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
> Inst fdupes (1.50-PR2-1 Ubuntu:9.04/jaunty)
> Conf fdupes (1.50-PR2-1 Ubuntu:9.04/jaunty
I didn't forget.  Since Ubuntu gives you instructions on how to install 
a package for a command you're trying to execute but don't have 
installed, my assumption is that we're all good to go.

In this case, instead of searching for the man page, someone would more 
likely try the command.  Then they'd be looking at something like this:

$ fdupes -r mypictures
The program 'fdupes' is currently not installed.  You can install it by 
sudo apt-get install fdupes
bash: fdupes: command not found

Of course, I may be assuming too much.  I appreciate your feedback.

Don't forget to try fdupes on other files, such as source code, mp3s, 
pictures, and many other things.  Just be careful when you delete what 
you find.  Some files (like configuration files) do occasionally HAVE to 
be duplicated (i.e., in more than one directory).


More information about the ubuntu-users mailing list