lk/system/deduplicate.md

20 lines
401 B
Markdown
Raw Normal View History

2024-08-07 16:03:53 +00:00
---
title: "deduplicate"
2025-02-12 14:01:15 +00:00
tags: [ "system", "deduplicate", "maintenance", "storage" ]
2024-08-07 16:03:53 +00:00
---
`rdfind`: find duplicate files, then delete them, or turn them into links.
Ask if a directory has duplicates (`rdfind` will not delete anything):
```bash
rdfind $dir
$EDITOR results.txt
```
Replace the duplicated files with [hard links](../basics/hard_links.md).
```bash
rdfind -makehardlinks true $dir
```