dups is a program for finding duplicate files in one or more directories. It works by first finding files that have the exact size. Then compares their MD5 hashes to see if their contents are the same too.

Command-line Options

-e EXT     Exclude files with extension EXT


# Find duplicates in a directories
dups /tmp

# Find duplicates in multiple directories
dups /tmp ~/tmp

# Ignore jpg files
dups -e jpg /tmp

# Ignore jpg and png files
dups -e jpg -e png /tmp


go get


  • If you've got any suggestions or questions, please create an issue here.
  • If you want to contribute a bug or implement a feature, please feel free to do so. Just send me a pull request.


This project is licensed under a MIT license.