rdfind
Find files with duplicate content and get rid of them. More information: https://rdfind.pauldreik.se.
-
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}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.