mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 06:53:50 +02:00
rmlint: add page (#9090)
This commit is contained in:
parent
919b1aba75
commit
04aba432ff
1 changed files with 32 additions and 0 deletions
32
pages/common/rmlint.md
Normal file
32
pages/common/rmlint.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
# rmlint
|
||||
|
||||
> Identify duplicate files or directories, and other filesystem issues.
|
||||
> More information: <https://rmlint.readthedocs.io/en/latest/rmlint.1.html>.
|
||||
|
||||
- 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}}`
|
Loading…
Add table
Reference in a new issue