Remove Duplicates with fdupes

Posted in Technology
Thu, Feb 18 - 1:45 pm EDT | 9 years ago by
Comments: 1
Be Sociable, Share!
Use Arrow Keys (← →) to Browse

If you are a bit scatterbrained like I am sometimes, then you might have downloaded some files over and over without knowing it. Or you could have copied it over and over in different directories. It happens and if you thought you could only sort through the files one by one, you’re wrong. There’s actually a tool called fdupes which helps us deal with this kind of problem.

What is fdupes?

It’s actually a command line tool. You could run it to do check on redundant files within one directory. Or you could run it in order to compare two directories and their contents, to verify what has been duplicated in them. Even if it’s a command line tool it’s easy to use this tool in the most basic ways.

fdupes /your/chosen/directory

This is the command for you to check for any duplicates in the directory. And if you want to make sure that you could check recursively, just add this -r right right before your chosen path.

If you are wondering how to deal with two directories which need to be checked and compared, just append the other directory’s name in the command when you run it. So it will look like this:

fdupes -r /your/chosen/directory /the other directory

This might take a while to finish because of it going through the files. I was running it earlier and it practically ate up my netbook’s resources. But things working well enough now, which is a good thing. It looks like fdupes is a good tool to keep around.

Use Arrow Keys (← →) to Browse

Be Sociable, Share!

Related Posts

  • grok

    Thanks for the heads-up on this. I DL’d the Debian fdupes package. Now I will find out how useful it is to me.

Be Sociable, Share!