Update cheatsheets

This commit is contained in:
ivuorinen
2025-02-03 00:17:52 +00:00
parent a3844df520
commit 85f0642d2d
6 changed files with 152 additions and 9 deletions

View File

@@ -12,9 +12,9 @@ source: https://github.com/tldr-pages/tldr.git
`rmlint {{path/to/directory1 path/to/directory2 ...}}`
- Check for space wasters, preferably keeping files in tagged directories (after the double slash):
- Check for duplicates bigger than a specific size, preferably keeping files in tagged directories (after the double slash):
`rmlint {{path/to/directory}} // {{path/to/original_directory}}`
`rmlint -s {{1MB}} {{path/to/directory}} // {{path/to/original_directory}}`
- Check for space wasters, keeping everything in the untagged directories:
@@ -24,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git
`./rmlint.sh`
- Find duplicate directory trees:
- Find duplicate directory trees based on data, ignoring names:
`rmlint --merge-directories {{path/to/directory}}`
@@ -32,10 +32,10 @@ source: https://github.com/tldr-pages/tldr.git
`rmlint --rank-by={{dl}} {{path/to/directory}}`
- Find only duplicates that have the same filename in addition to the same contents:
- Find files with identical filename and contents, and link rather than delete the duplicates:
`rmlint --match-basename {{path/to/directory}}`
`rmlint -c sh:link --match-basename {{path/to/directory}}`
- Find only duplicates that have the same extension in addition to the same contents:
- Use `data` as master directory. Find only duplicates in backup that are also in `data`. Do not delete any files in `data`:
`rmlint --match-extension {{path/to/directory}}`
`rmlint {{path/to/backup}} // {{path/to/data}} --keep-all-tagged --must-match-tagged`