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

Possibly Related Posts:


1 comment to Linux tool :Fdupes

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>