mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-30 08:17:56 +01:00
rdfind: add page (#2337)
This commit is contained in:
parent
5133b73a6a
commit
3bb46fd344
1 changed files with 19 additions and 0 deletions
19
pages/common/rdfind.md
Normal file
19
pages/common/rdfind.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# rdfind
|
||||
|
||||
> Finds duplicate files and gets rid of them.
|
||||
|
||||
- Identify all duplicates in a given directory and outputs a summary:
|
||||
|
||||
`rdfind -dryrun true {{path/to/directory}}`
|
||||
|
||||
- Replace all duplicates with hardlinks:
|
||||
|
||||
`rdfind -makehardlinks true {{path/to/directory}}`
|
||||
|
||||
- Replace all duplicates with symlinks/soft links:
|
||||
|
||||
`rdfind -makesymlinks true {{path/to/directory}}`
|
||||
|
||||
- Delete all duplicates and do not ignore empty files:
|
||||
|
||||
`rdfind -deleteduplicates true -ignoreempty false {{/mnt/backup}}`
|
Loading…
Reference in a new issue