From e108592c4467eb09c032faa03c7097fa1efd5bc2 Mon Sep 17 00:00:00 2001 From: Janek Date: Sun, 2 Feb 2025 23:28:08 +0100 Subject: [PATCH] rmlint: include some more advanced flags (#15380) Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: Wiktor Perskawiec Co-authored-by: Juri Dispan --- pages/common/rmlint.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pages/common/rmlint.md b/pages/common/rmlint.md index 95e8784c7d..92ed5526ad 100644 --- a/pages/common/rmlint.md +++ b/pages/common/rmlint.md @@ -7,9 +7,9 @@ `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: @@ -19,7 +19,7 @@ `./rmlint.sh` -- Find duplicate directory trees: +- Find duplicate directory trees based on data, ignoring names: `rmlint --merge-directories {{path/to/directory}}` @@ -27,10 +27,10 @@ `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`