LinuxCommandLibrary

rmlint

Identify duplicate files or directories, and other filesystem issues.

TLDR

Check a directory for duplicates, empty files, and other issues

$ rmlint [path/to/directory]
copy


Delete duplicate files found by an execution of rmlint
$ ./rmlint.sh
copy


Find duplicate directory trees
$ rmlint --merge-directories [path/to/directory]
copy


Mark files at lower path [d]epth as originals
$ rmlint --rank-by=[d] [path/to/directory]
copy


Mark files with shortest name [l]ength as originals
$ rmlint --rank-by=[l] [path/to/directory]
copy


Find only duplicates that have the same filename in addition to the same contents
$ rmlint --match-basename [path/to/directory]
copy


Find all duplicates with the same extension
$ rmlint --match-extension [path/to/directory]
copy

Copied to clipboard