2022-10-18 16:49:18 +01:00
|
|
|
# rmlint
|
|
|
|
|
2023-10-27 19:36:54 +01:00
|
|
|
> Find space waste and other broken things on your filesystem.
|
2022-10-18 16:49:18 +01:00
|
|
|
> More information: <https://rmlint.readthedocs.io/en/latest/rmlint.1.html>.
|
|
|
|
|
2023-10-27 19:36:54 +01:00
|
|
|
- Check directories for duplicated, empty and broken files:
|
2022-10-18 16:49:18 +01:00
|
|
|
|
2023-10-27 19:36:54 +01:00
|
|
|
`rmlint {{path/to/directory1 path/to/directory2 ...}}`
|
|
|
|
|
|
|
|
- Check for space wasters, preferably keeping files in tagged directories (after the double slash):
|
|
|
|
|
|
|
|
`rmlint {{path/to/directory}} // {{path/to/original_directory}}`
|
|
|
|
|
|
|
|
- Check for space wasters, keeping everything in the untagged directories:
|
|
|
|
|
|
|
|
`rmlint --keep-all-untagged {{path/to/directory}} // {{path/to/original_directory}}`
|
2022-10-18 16:49:18 +01:00
|
|
|
|
|
|
|
- Delete duplicate files found by an execution of `rmlint`:
|
|
|
|
|
|
|
|
`./rmlint.sh`
|
|
|
|
|
|
|
|
- Find duplicate directory trees:
|
|
|
|
|
|
|
|
`rmlint --merge-directories {{path/to/directory}}`
|
|
|
|
|
2023-10-27 19:36:54 +01:00
|
|
|
- Mark files at lower path [d]epth as originals, on tie choose shorter [l]ength:
|
2022-10-18 16:49:18 +01:00
|
|
|
|
2023-10-27 19:36:54 +01:00
|
|
|
`rmlint --rank-by={{dl}} {{path/to/directory}}`
|
2022-10-18 16:49:18 +01:00
|
|
|
|
|
|
|
- Find only duplicates that have the same filename in addition to the same contents:
|
|
|
|
|
|
|
|
`rmlint --match-basename {{path/to/directory}}`
|
|
|
|
|
2023-10-27 19:36:54 +01:00
|
|
|
- Find only duplicates that have the same extension in addition to the same contents:
|
2022-10-18 16:49:18 +01:00
|
|
|
|
|
|
|
`rmlint --match-extension {{path/to/directory}}`
|