Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: FDUPES: Tool to find and delete duplicate files.  (Read 1303 times)

0 Members and 1 Guest are viewing this topic.

vyshakhv

  • Newbie
  • *
  • Posts: 28
  • Karma: +0/-0
FDUPES: Tool to find and delete duplicate files.
« on: December 16, 2017, 03:54:12 pm »
FDUPES is a command line utility to find and remove duplicate files in Linux. It Searches the given path for duplicate files. Such files are found by comparing file sizes and MD5 signatures, followed by a byte-by-byte comparison.

Installation on Debian / Ubuntu

Code: [Select]
sudo apt install fdupes
Once installed, you can search duplicate files using the below command:

Code: [Select]
fdupes /path/to/folder
For recursively searching within a folder, use -r option

Code: [Select]
fdupes -r /home
This will only list the duplicate files and do not delete them by itself. You can manually delete the duplicate files or use -d option to delete them.

Code: [Select]
fdupes -d /path/to/folder
This won’t delete anything on its own but will display all the duplicate files and gives you an option to either delete files one by one or select a range to delete it. If you want to delete all files without asking and preserving the first one, you can use the noprompt -N option.