TOOL » LINUX » PACKAGE

Fdupes

Usage

Finds duplicate files in a given set of directories.

shell
fdupes OPTIONS DIRS
OptionDescription
-d --deletePrompt user for files to preserve, deleting all others.
-r --recurseFor every directory given follow subdirectories encountered within.
-I --immediateDelete duplicates as they are encountered.

When deleting, use -I to just cleanup on the go. If using the delete prompt, confirm your choices by pressing the key DELETE at the end.

Example

Search for duplicate files in the current directory:

shell
fdupes .