← 返回命令列表

Linux command

patool 命令

文本

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

常用示例

Extract

patool extract [path/to/archive]

Create

patool create [path/to/archive] [files...]

List

patool list [path/to/archive]

Compare

patool diff [archive1] [archive2]

Search

patool search [pattern] [path/to/archive]

Test

patool test [path/to/archive]

说明

patool is a portable archive file manager that provides a unified interface for numerous archive formats. It automatically detects archive types and uses the appropriate backend tool for each format. Supported formats include zip, tar, gzip, bzip2, xz, 7z, rar, lzma, and many others. The tool abstracts away format-specific commands, allowing consistent operations across all archive types.

参数

-v, --verbose
Verbose output
-n, --non-interactive
Non-interactive mode
--outdir _dir_
Extract to specified directory

FAQ

What is the patool command used for?

patool is a portable archive file manager that provides a unified interface for numerous archive formats. It automatically detects archive types and uses the appropriate backend tool for each format. Supported formats include zip, tar, gzip, bzip2, xz, 7z, rar, lzma, and many others. The tool abstracts away format-specific commands, allowing consistent operations across all archive types.

How do I run a basic patool example?

Run `patool extract [path/to/archive]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -v, --verbose do in patool?

Verbose output