2025-03-14 21:59:59 -06:00
|
|
|
# rdfind
|
|
|
|
|
|
|
|
|
|
> Find files with duplicate content and get rid of them.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://rdfind.pauldreik.se/rdfind.1.html>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Identify all duplicates in a given directory and output 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 {{path/to/directory}}`
|