2018-09-18 10:45:31 +01:00
|
|
|
# rdfind
|
|
|
|
|
2018-09-19 16:31:46 +01:00
|
|
|
> Find files with duplicate content and get rid of them.
|
2019-05-23 11:56:50 +01:00
|
|
|
> More information: <https://rdfind.pauldreik.se>.
|
2018-09-18 10:45:31 +01:00
|
|
|
|
2018-09-19 16:31:46 +01:00
|
|
|
- Identify all duplicates in a given directory and output a summary:
|
2018-09-18 10:45:31 +01:00
|
|
|
|
|
|
|
`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:
|
|
|
|
|
2018-09-19 16:31:46 +01:00
|
|
|
`rdfind -deleteduplicates true -ignoreempty false {{path/to/directory}}`
|