Find Duplicate Files With rdfind

Scan directories for identical files and review the duplicates safely.

LinuxFilesdiskfindLow risk
Run rdfind -dryrun true ~/Downloads to list duplicates without changing anything.

01Command

Command
$ rdfind -dryrun true ~/Downloads

02What it does

rdfind compares files by size and checksum, ranking results by a chosen criterion (most recently modified or least), and prints a results file. Only after reviewing it should you run with -makehardlinks or -deleteduplicates.

03Risk

RiskLow risk
Requirementssudo apt install rdfind
!Warning: Deleting duplicates is irreversible; always start with the dry run and keep the results file as a record.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • rdfind
    Official project · vendor-doc · 2026-09-20
    Evidence: Debian packages rdfind, which finds duplicate files and can replace them with symlinks or hardlinks.
  • Debian package: rdfind
    Debian · vendor-doc · 2026-09-20
    Evidence: Debian packages rdfind, which finds duplicate files and can replace them with symlinks or hardlinks.

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

06Related solutions