Fdupes is a command line tool that allows you to find all duplicate files through the console. The advantage over using graphical tools like fslint is of course the speed. At the end of the day, there is nothing faster and more convenient than the Linux console.
Why should we look for duplicate files in Linux?
No matter what operating system you use sooner or later, your computer will contain many files of different sizes, and if you’re not careful enough, repeating them can cost you disk space that you need. For example, you inadvertently downloaded the same ultra HD movie with 40 giga bytes twice.
How to install fdupes on Ubuntu or Debian linux?
sudo apt install fdupes
Or using apt-fast which we prefer 🙂
sudo apt-fast install fdupes
How to install fdupes on Fedora?
dnf install fdupes
How to install fdupes on CentOS/RHEL?
yum install fdupes
Once installed, you can search for duplicate files using the following command:
Or you can search recursively in which case you will be presented with a progress bar
# fdupes -r /path/to/folder Progress [34248/65545] 80%Code language: PHP (php)
fdupes -d /path/to/folder
It won’t delete anything on it’s own, you will be asked for confirmation.
For help you can use the built in help in the command
In conclusion, we could say that this modest command is an extremely powerful and fast option to deal with duplicate files on our computer and use the free space on our disk for more useful purposes.