rmlint
Find space waste and other broken things on your filesystem. tldr-pages
On several platforms
Several platforms
Check directories for duplicated, empty, and broken files
rmlint path/to/directory1 path/to/directory2 ...IdentifyCheck for duplicates bigger than a specific size, preferably keeping files in tagged directories (after the double slash)
rmlint --size 1MB path/to/directory // path/to/original_directoryIdentifyCheck for space wasters, keeping everything in the untagged directories
rmlint --keep-all-untagged path/to/directory // path/to/original_directoryIdentifyDelete duplicate files found by an execution of rmlint
./rmlint.shFind duplicate directory trees based on data, ignoring names
rmlint --merge-directories path/to/directoryIdentifyMark files at lower path depth as originals, on tie choose shorter length
rmlint --rank-by dl path/to/directoryIdentifyFind files with identical filename and contents, and link rather than delete the duplicates
rmlint --config sh:link --match-basename path/to/directoryIdentifyUse data as master directory. Find only duplicates in backup that are also in data. Do not delete any files in data
rmlint path/to/backup // path/to/data --keep-all-tagged --must-match-taggedIdentify