commands.sh

rmlint

all

Find space waste and other broken things on your filesystem.

More info →

Options (8)

-s, --sizeboolean

Check for duplicates bigger than a specific size, preferably keeping files in tagged directories (after the double slash)

Example: rmlint {{[-s|--size]}} {{1MB}} {{path/to/directory}} // {{path/to/original_directory}}
-k, --keep-all-untaggedboolean

Check for space wasters, keeping everything in the untagged directories

Example: rmlint {{[-k|--keep-all-untagged]}} {{path/to/directory}} // {{path/to/original_directory}}
-D, --merge-directoriesboolean

Find duplicate directory trees based on data, ignoring names

Example: rmlint {{[-D|--merge-directories]}} {{path/to/directory}}
-S, --rank-byboolean

Mark files at lower path [d]epth as originals, on tie choose shorter [l]ength

Example: rmlint {{[-S|--rank-by]}} {{dl}} {{path/to/directory}}
-c, --configboolean

Find files with identical filename and contents, and link rather than delete the duplicates

Example: rmlint {{[-c|--config]}} sh:link {{[-b|--match-basename]}} {{path/to/directory}}
-b, --match-basenameboolean

Find files with identical filename and contents, and link rather than delete the duplicates

Example: rmlint {{[-c|--config]}} sh:link {{[-b|--match-basename]}} {{path/to/directory}}
-k, --keep-all-taggedboolean

Use `data` as master directory. Find only duplicates in backup that are also in `data`. Do not delete any files in `data`

Example: rmlint {{path/to/backup}} // {{path/to/data}} {{[-k|--keep-all-tagged]}} {{[-m|--must-match-tagged]}}
-m, --must-match-taggedboolean

Use `data` as master directory. Find only duplicates in backup that are also in `data`. Do not delete any files in `data`

Example: rmlint {{path/to/backup}} // {{path/to/data}} {{[-k|--keep-all-tagged]}} {{[-m|--must-match-tagged]}}

Examples (8)

Check directories for duplicated, empty, and broken files

rmlint path/to/directory1 path/to/directory2 ...

Check for duplicates bigger than a specific size, preferably keeping files in tagged directories (after the double slash)

rmlint [-s|--size] 1MB path/to/directory // path/to/original_directory

Check for space wasters, keeping everything in the untagged directories

rmlint [-k|--keep-all-untagged] path/to/directory // path/to/original_directory

Delete duplicate files found by an execution of `rmlint`

./rmlint.sh

Find duplicate directory trees based on data, ignoring names

rmlint [-D|--merge-directories] path/to/directory

Mark files at lower path [d]epth as originals, on tie choose shorter [l]ength

rmlint [-S|--rank-by] dl path/to/directory

Find files with identical filename and contents, and link rather than delete the duplicates

rmlint [-c|--config] sh:link [-b|--match-basename] path/to/directory

Use `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 [-k|--keep-all-tagged] [-m|--must-match-tagged]
made by @shridhargupta | data from tldr-pages