Command-line tool
rdfind
brew/rdfind
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Find duplicate files based on content (NOT file names)
At a glance
- Type
- Command-line tool
- Install on
- macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install rdfind
Linux
brew install rdfind
Identify all duplicates in a given directory and output a summary
rdfind -dryrun true path/to/directory
Replace all duplicates with hardlinks
rdfind -makehardlinks true path/to/directory
Replace all duplicates with symlinks/soft links
rdfind -makesymlinks true path/to/directory
Related command-line tools
- rmlint
Extremely fast tool to remove dupes and other lint from your filesystem - find_duplicate_files
find identical files according to their size and hashing algorithm - duff
Quickly find duplicates in a set of files from the command-line - czkawka
Duplicate file utility rust cleaner duplicates multiplatform similar-images gtk-rs similar-music similar-videos - fdupes
Identify or delete duplicate files - fclones
Efficient Duplicate File Finder - alldup
Duplicate file remover - htmlq
Uses CSS selectors to extract bits content from HTML files
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents