Find (and delete) Duplicate Files On Linux

February 29th, 2008

fdupes is a program for identifying/deleting duplicate files residing within specified directories.

How I typically use it to find duplicate files
fdupes -r -n -1 -S /path/of/directory/to/search/for/dups

How I typically use it to delete duplicate files. It will prompt you for which file to delete. You can preserve multiple files by using a comma separated list of values. See documentation for caveats.
fdupes -r -n -1 -S -d /path/of/directory/to/search/for/dups

Reference
http://linux.die.net/man/1/fdupes
http://netdial.caribe.net/~adrian2/fdupes.html

One Response to “Find (and delete) Duplicate Files On Linux”

  1. test Says:

    just an antispam test

Leave a Reply

Spam protection by WP Captcha-Free