1
0
Fork 0
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:
Philipp Weißmann 2018-09-18 11:45:31 +02:00 committed by Starbeamrainbowlabs
parent 5133b73a6a
commit 3bb46fd344

19
pages/common/rdfind.md Normal file
View 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}}`