← 返回命令列表

Linux command

rzip 命令

网络

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

常用示例

Compress a file (removes original)

rzip [file]

Compress keeping original

rzip -k [file]

Decompress a file

rzip -d [file.rz]

Set maximum compression level

rzip -9 [file]

Compress with progress display

rzip -P [file]

Compress to a specific output file

rzip -o [output.rz] [file]

Force overwrite of existing files

rzip -f [file]

说明

rzip is a compression program designed for large files. It operates in two stages: first, it finds and encodes large chunks of duplicated data over potentially very long distances (up to nearly a gigabyte) using a rolling-checksum algorithm similar to rsync. Second, it uses bzip2 to compress the output of the first stage. The long-range matching makes rzip particularly effective on files with repeated content spread far apart, which standard compressors cannot exploit.

参数

-d
Decompress. Automatically set if the program is invoked as `runzip`.
-k
Keep input files after compression or decompression.
-f
Force overwrite of existing output files.
-o _filename_
Specify output file name. Cannot be used with multiple input files.
-S _suffix_
Set the compression suffix. Default is `.rz`.
-P
Show percentage progress while compressing.
-0 to -9
Compression level from fastest (0) to best (9). Default is 6.
-V
Show version number.
-h
Print a help summary.

FAQ

What is the rzip command used for?

rzip is a compression program designed for large files. It operates in two stages: first, it finds and encodes large chunks of duplicated data over potentially very long distances (up to nearly a gigabyte) using a rolling-checksum algorithm similar to rsync. Second, it uses bzip2 to compress the output of the first stage. The long-range matching makes rzip particularly effective on files with repeated content spread far apart, which standard compressors cannot exploit.

How do I run a basic rzip example?

Run `rzip [file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -d do in rzip?

Decompress. Automatically set if the program is invoked as `runzip`.