Command-line tool
duff
brew/duff
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Quickly find duplicates in a set of files from the command-line
At a glance
- Type
- Command-line tool
- Install on
- macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install duff
Linux
brew install duff
Find duplicate files recursively
duff -r path/to/directory
List all but one file from each cluster of duplicates
duff -er path/to/directory
List unique files
duff -ur path/to/directory
Related command-line tools
- red-tldr
Used to help red team staff quickly find the commands and key points - percona-toolkit
Command-line tools for MySQL, MariaDB and system tasks - repgrep
An interactive replacer for ripgrep that makes it easy to find and replace across files on the command line. - huniq
Filter out duplicates on the command line. Replacement for sort | uniq optimized for speed (10x faster). - the_silver_searcher
Code-search similar to ack developer-tools cli search command-prompt terminal shell console find command-line grep… - find_duplicate_files
find identical files according to their size and hashing algorithm - tokei
Program that allows you to count code, quickly rust linux macos windows cli code cloc sloc statistics tokei… - rdfind
Find duplicate files based on content (NOT file names)
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents