From 04aba432ff698b9b1aab904afef74cdd0a1342da Mon Sep 17 00:00:00 2001 From: Jacobus Burger Date: Tue, 18 Oct 2022 07:49:18 -0800 Subject: [PATCH] rmlint: add page (#9090) --- pages/common/rmlint.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/common/rmlint.md diff --git a/pages/common/rmlint.md b/pages/common/rmlint.md new file mode 100644 index 000000000..9abea4268 --- /dev/null +++ b/pages/common/rmlint.md @@ -0,0 +1,32 @@ +# rmlint + +> Identify duplicate files or directories, and other filesystem issues. +> More information: . + +- Check a directory for duplicates, empty files, and other issues: + +`rmlint {{path/to/directory}}` + +- Delete duplicate files found by an execution of `rmlint`: + +`./rmlint.sh` + +- Find duplicate directory trees: + +`rmlint --merge-directories {{path/to/directory}}` + +- Mark files at lower path [d]epth as originals: + +`rmlint --rank-by={{d}} {{path/to/directory}}` + +- Mark files with shortest name [l]ength as originals: + +`rmlint --rank-by={{l}} {{path/to/directory}}` + +- Find only duplicates that have the same filename in addition to the same contents: + +`rmlint --match-basename {{path/to/directory}}` + +- Find all duplicates with the same extension: + +`rmlint --match-extension {{path/to/directory}}`