Find duplicate files with fdupes

fdupes compares files by size then checksum and reports groups of identical files, with interactive deletion to keep one copy of each.

LinuxcleanupduplicatesfindMedium risk
Run `fdupes -r ~/Documents` to list duplicates; run `fdupes -rd ~/Documents` to delete copies interactively, keeping one per group.

01Command

Command
$ fdupes -r ~/Documents

02What it does

Downloaded photos and re-copied folders silently accumulate duplicates. fdupes first groups by size, then compares content hashes, so matches are byte-identical. Pair it with `-s` to include hidden files or `fdupes -rL` to hardlink duplicates instead of deleting (`-L`), saving space without data loss.

03Risk

RiskMedium risk
Requirementsfdupes package
!Warning: Deletion is destructive — review the list before using `-d`, and never run it against backup directories where 'duplicates' are intentional.

04Undo

Undo
$ null

05Sources

Last verified: 2026-09-18 · Category: Files & Folders

06Related solutions