# zipinfo

用来列出压缩文件信息

## 补充说明

**zipinfo命令** 用来列出压缩文件信息。执行zipinfo指令可得知zip压缩文件的详细信息。

### 语法

```
zipinfo(选项)(参数)
```

### 选项

```
-1：只列出文件名称；
-2：此参数的效果和指定“-1”参数类似，但可搭配“-h”，“-t”和“-z”参数使用；
-h：只列出压缩文件的文件名称；
-l：此参数的效果和指定“-m”参数类似，但会列出原始文件的大小而非每个文件的压缩率；
-m：此参数的效果和指定“-s”参数类似，但多会列出每个文件的压缩率；
-M：若信息内容超过一个画面，则采用类似more指令的方式列出信息；
-s：用类似执行“ls-l”指令的效果列出压缩文件内容；
-t：只列出压缩文件内所包含的文件数目，压缩前后的文件大小及压缩率；
-T：将压缩文件内每个文件的日期时间用年，月，日，时，分，秒的顺序列出；
-v：详细显示压缩文件内每一个文件的信息；
-x<范本样式>：不列出符合条件的文件的信息；
-z：如果压缩文件内含有注释，就将注释显示出来。
```

### 参数

文件：指定zip格式的压缩包。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hezhiqiang.gitbook.io/linux/ming-ling/zipinfo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
