← 返回命令列表

Linux command

7zr 命令

文件

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

常用示例

Create 7z archive

7zr a [archive.7z] [files...]

Extract 7z archive

7zr x [archive.7z]

List archive contents

7zr l [archive.7z]

Test archive integrity

7zr t [archive.7z]

Create with maximum compression

7zr a -mx=9 [archive.7z] [files]

说明

7zr is a minimal, reduced version of the 7-Zip command-line tool that only supports the 7z format. It's the lightest-weight option in the 7-Zip family. 7zr is ideal when: - Only 7z format is needed - Minimal dependencies are desired - Embedding in scripts or systems with size constraints The command syntax matches 7z and 7za. For 7z-only operations, 7zr provides the smallest footprint.

参数

-o_dir_
Output directory
-mx=_n_
Compression level (0-9)
-r
Recurse subdirectories
-y
Assume yes to queries

FAQ

What is the 7zr command used for?

7zr is a minimal, reduced version of the 7-Zip command-line tool that only supports the 7z format. It's the lightest-weight option in the 7-Zip family. 7zr is ideal when: - Only 7z format is needed - Minimal dependencies are desired - Embedding in scripts or systems with size constraints The command syntax matches 7z and 7za. For 7z-only operations, 7zr provides the smallest footprint.

How do I run a basic 7zr example?

Run `7zr a [archive.7z] [files...]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -o_dir_ do in 7zr?

Output directory