rmdupes – find and remove duplicate files

rmdupes is a command-line utility to scan a directory for duplicate files and remove them. The main feature is an option to use a reference directory: all files in the target directory that are duplicates of files in the reference directory will be removed. If no reference directory is given, files in the target directory will be compared against each other.

There is also an option to move files to a backup directory with preserved relative paths.

By default it will not delete any files without confirmation. There are options to perform a dry run, delete without confirmation, automatically select one file to keep from a set of duplicates (oldest, newest, first in alphabetical order). There is also an option for inclusive and exclusive regular expressions to find-type the search by e.g. file extensions or subdirectories.

There is also an option to generate shell scripts to remove the files after inspection.

This is free and open source software.

Website: xyne.dev/projects/rmdupes
Support:
Developer: Xyne
License: GNU General Public License v2.0

rmdupes options

rmdupes is written in Python. Learn Python with our recommended free books and free tutorials.


Related Software

Find and Delete Duplicate Files with these CLI Tools
CzkawkaFind duplicate files, big files, empty files, similar images, and much more
fdupesGreat CLI tool that's written in C
fclonesEfficient duplicate file finder and remover
rmlintFast tool to remove duplicates and other lint
jdupesPowerful CLI duplicate file finder and 'enhanced' fork of fdupes
smashFind duplicate files super fast
rdfindCLI redundant data find tool written in C++
duffCommand-line utility for finding duplicate files
rmdupesOption to use a reference directory
PeriscopeOrganize storage and safely remove redundant files
Go Find DuplicatesScans directories for duplicate files and directories
samanlainenDelete duplicate files with SHA512 hashing
FSlintPython based CLI and GUI tool
sdupesFast duplicate file detection utility.
dupefiDuplicate file finder designed with Linux philosophy
DupsterDuplicate file finder
dupleFind and remove duplicate files
ddhDirectory Differential hTool
backdownSafely and ergonomically remove duplicate files

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments