snippetbashTip
rdfind — Find files with duplicate content and get rid of them. More information: <https://rdfind.pauldreik.s
Viewed 0 times
commandfilesfindduplicaterdfindcontentcliwith
Problem
How to use the
rdfind command: Find files with duplicate content and get rid of them. More information: <https://rdfind.pauldreik.se/rdfind.1.html>.Solution
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}}Code Snippets
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}}Context
tldr-pages: common/rdfind
Revisions (0)
No revisions yet.