Find Duplicate Files on Linux With fdupes

The time comes for every user when you’re faced with a directory full of duplicate files that needs to be cleaned.

Thankfully we have fdupes to solve this problem.

There is a slackbuild for the program as well as packages for many other distros available.

The basic usage consists of:

fdupes directoryname

Also useful are the -r and -R switches which both recurse through directories to find duplicates. There is also a -d switch to delete duplicates with prompting and a -N argument to suppress the prompting and just delete without asking.

That’s it, hopefully you find fdupes as useful as I have!