You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.8 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# zipinfo
## 说明
**zipinfo命令** 用来列出压缩文件信息。执行zipinfo指令可得知zip压缩文件的详细信息
## 选项
```markdown
-1只列出文件名称
-2此参数的效果和指定“-1”参数类似但可搭配“-h”“-t”和“-z”参数使用
-h只列出压缩文件的文件名称
-l此参数的效果和指定“-m”参数类似但会列出原始文件的大小而非每个文件的压缩率
-m此参数的效果和指定“-s”参数类似但多会列出每个文件的压缩率
-M若信息内容超过一个画面则采用类似more指令的方式列出信息
-s用类似执行“ls-l”指令的效果列出压缩文件内容
-t只列出压缩文件内所包含的文件数目压缩前后的文件大小及压缩率
-T将压缩文件内每个文件的日期时间用年秒的顺序列出
-v详细显示压缩文件内每一个文件的信息
-x<范本样式>:不列出符合条件的文件的信息
-z如果压缩文件内含有注释就将注释显示出来
main listing-format options: -s short Unix "ls -l" format (def.)
-1 filenames ONLY, one per line -m medium Unix "ls -l" format
-2 just filenames but allow -h/-t/-z -l long Unix "ls -l" format
-v verbose, multi-page format
miscellaneous options:
-h print header line -t print totals for listed files or for all
-z print zipfile comment -TM print file times in sortable decimal format
-CJ be case-insensitive 20 April 2009 -U use escapes for all non-ASCII Unicode
-x exclude filenames that follow from listing
-O CHARSET specify a character encoding for DOS, Windows and OS/2 archives
-I CHARSET specify a character encoding for UNIX and other archives
```