1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-24 23:35:25 +02:00
tldr/pages/common/rdfind.md
2025-04-25 05:54:18 +03:00

20 lines
574 B
Markdown

# rdfind
> Find files with duplicate content and get rid of them.
> More information: <https://rdfind.pauldreik.se/rdfind.1.html>.
- 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}}`