mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-24 05:51:54 +00:00
Update cheatsheets
This commit is contained in:
14
tldr/rmlint
14
tldr/rmlint
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user