Linux tool :Fdupes

How Do I Use fdupes?

Find duplicate files in /etc/ directory, enter:

[email protected]:/home/kartook# fdupes /etc

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):

[email protected]:/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:

[email protected]:/home/kartook# fdupes -r /dir1

How Do I Find Dupes In Two Directories?

Type the command as follows:

[email protected]:/home/kartook# fdupes /dir1 /dir2

How Do I See Size Of Duplicate Files?

Type the following command with the -S option:

[email protected]:/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.