Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

27
linux/duperemove Normal file
View File

@@ -0,0 +1,27 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# duperemove
> Finds duplicate filesystem extents and optionally schedule them for deduplication.
> An extent is small part of a file inside the filesystem.
> On some filesystems one extent can be referenced multiple times, when parts of the content of the files are identical.
> More information: <https://markfasheh.github.io/duperemove/>.
- Search for duplicate extents in a directory and show them:
`duperemove -r {{path/to/directory}}`
- Deduplicate duplicate extents on a Btrfs or XFS (experimental) filesystem:
`duperemove -r -d {{path/to/directory}}`
- Use a hash file to store extent hashes (less memory usage and can be reused on subsequent runs):
`duperemove -r -d --hashfile={{path/to/hashfile}} {{path/to/directory}}`
- Limit I/O threads (for hashing and dedupe stage) and CPU threads (for duplicate extent finding stage):
`duperemove -r -d --hashfile={{path/to/hashfile}} --io-threads={{N}} --cpu-threads={{N}} {{path/to/directory}}`