← 返回命令列表

Linux command

duperemove 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Example

duperemove -r [path/to/directory]

Deduplicate

duperemove -r -d [path/to/directory]

Example

duperemove -r -d --hashfile=[path/to/hashfile] [path/to/directory]

Example

duperemove -r -d --hashfile=[path/to/hashfile] --io-threads=[n] --cpu-threads=[n] [path/to/directory]

说明

duperemove finds duplicate filesystem extents and optionally schedules them for deduplication. On filesystems like Btrfs and XFS, identical data blocks can be shared between files, saving disk space. An extent is a contiguous area of storage allocated for a file.

参数

-r
Recursively process directories
-d
Deduplicate (schedule duplicates for dedup)
--hashfile _file_
Store hashes in file for reuse
--io-threads _n_
I/O thread count
--cpu-threads _n_
CPU thread count for hash comparison
-h
Print human-readable sizes
-v
Verbose output
--dedupe-options=_OPTIONS_
Comma-separated dedupe options (e.g., partial, same)
-b _SIZE_
Block size for hashing (default: 128K)

FAQ

What is the duperemove command used for?

duperemove finds duplicate filesystem extents and optionally schedules them for deduplication. On filesystems like Btrfs and XFS, identical data blocks can be shared between files, saving disk space. An extent is a contiguous area of storage allocated for a file.

How do I run a basic duperemove example?

Run `duperemove -r [path/to/directory]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -r do in duperemove?

Recursively process directories