Linux tool :Fdupes

How Do I Use fdupes?

Find duplicate files in /etc/ directory, enter:

root@K:/home/kartook# fdupes /etc
/etc/src-back
/etc/src-orgi

How Do I Delete Unwanted Files?

You can force fdupes to prompt you for files to preserve, deleting all others (use this with care otherwise you may loss data):

root@K:/home/kartook# fdupes -d /etc
[1] /etc/src-back
[2] /etc/src-orgi
Set 1 of 1, preserve files [1 – 2, all]: 1
[+] /etc/src-back
[-] /etc/src-orgi

How Do Recursively Search Directory?

You can recursively search every directory given follow subdirectories encountered within the -r option, enter:

root@K:/home/kartook# fdupes -r /dir1

How Do I Find Dupes In Two Directories?

Type the command as follows:

root@K:/home/kartook# fdupes /dir1 /dir2

How Do I See Size Of Duplicate Files?

Type the following command with the -S option:

root@K:/home/kartook# fdupes -S /etc

One thought on “Linux tool :Fdupes

  1. Pingback: Linux tool :Fdupes | CyberTechBlog.Com

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.