LinuxCommandLibrary

rmlint

Identify duplicate files or directories, and other filesystem issues.

TLDR

Check directories for duplicated, empty and broken files

$ rmlint [path/to/directory1 path/to/directory2 ...]
copy


Check for space wasters, preferably keeping files in tagged directories (after the double slash)
$ rmlint [path/to/directory] // [path/to/original_directory]
copy


Check for space wasters, keeping everything in the untagged directories
$ rmlint --keep-all-untagged [path/to/directory] // [path/to/original_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, on tie choose shorter [l]ength
$ rmlint --rank-by=[dl] [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 only duplicates that have the same extension in addition to the same contents
$ rmlint --match-extension [path/to/directory]
copy

Copied to clipboard