Linux zipinfo命令

Linux zipinfo命令用于列出压缩文件信息。

执行zipinfo指令可得知zip压缩文件的详细信息。

语法zipinfo [-12hlmMstTvz][压缩文件][文件...][-x ]

参数:

-1 只列出文件名称。

-2 此参数的效果和指定"-1"参数类似,但可搭配"-h","-t"和"-z"参数使用。

-h 只列出压缩文件的文件名称。

-l 此参数的效果和指定"-m"参数类似,但会列出原始文件的大小而非每个文件的压缩率。

-m 此参数的效果和指定"-s"参数类似,但多会列出每个文件的压缩率。

-M 若信息内容超过一个画面,则采用类似more指令的方式列出信息。

-s 用类似执行"ls -l"指令的效果列出压缩文件内容。

-t 只列出压缩文件内所包含的文件数目,压缩前后的文件大小及压缩率。

-T 将压缩文件内每个文件的日期时间用年,月,日,时,分,秒的顺序列出。

-v 详细显示压缩文件内每一个文件的信息。

-x 不列出符合条件的文件的信息。

-z 如果压缩文件内含有注释,就将注释显示出来。

实例

显示压缩文件信息

[root@w3cschool.cc a]# zipinfo cp.zip

Archive: cp.zip 486 bytes 4 files

-rw-r--r-- 2.3 unx 0 bx stor 24-May-10 18:54 a.c

-rw-r--r-- 2.3 unx 0 bx stor 24-May-10 18:54 b.c

-rw-r--r-- 2.3 unx 0 bx stor 24-May-10 18:54 c.c

-rw-r--r-- 2.3 unx 0 bx stor 24-May-10 18:54 e.c

4 files, 0 bytes uncompressed, 0 bytes compressed: 0.0%

[root@w3cschool.cc a]#

显示压缩文件中每个文件的信息

[root@w3cschool.cc a]# zipinfo -v cp.zip

Archive: cp.zip 486 bytes 4 files

End-of-central-directory record:

-------------------------------

Actual offset of end-of-central-dir record: 464 (000001D0h)

Expected offset of end-of-central-dir record: 464 (000001D0h)

(based on the length of the central directory and its expected offset)

This zipfile constitutes the sole disk of a single-part archive; its

central directory contains 4 entries. The central directory is 248

(000000F8h) bytes long, and its (expected) offset in bytes from the

beginning of the zipfile is 216 (000000D8h).

There is no zipfile comment.

Central directory entry #1:

---------------------------

a.c

offset of local header from start of archive: 0 (00000000h) bytes

file system or operating system of origin: Unix

version of encoding software: 2.3

minimum file system compatibility required: MS-DOS, OS/2 or NT FAT

minimum software version required to extract: 1.0

compression method: none (stored)

file security status: not encrypted

extended local header: no

file last modified on (DOS date/time): 2010 May 24 18:54:26

file last modified on (UT extra field modtime): 2010 May 24 18:54:26 local

file last modified on (UT extra field modtime): 2010 May 24 10:54:26 UTC

32-bit CRC value (hex): 00000000

compressed size: 0 bytes

uncompressed size: 0 bytes

length of filename: 3 characters

length of extra field: 13 bytes

length of file comment: 0 characters

disk number on which file begins: disk 1

apparent file type: binary

Unix file attributes (100644 octal): -rw-r--r--

MS-DOS file attributes (00 hex): none

The central-directory extra field contains:

- A subfield with ID 0x5455 (universal time) and 5 data bytes.

The local extra field has UTC/GMT modification/access times.

- A subfield with ID 0x7855 (Unix UID/GID) and 0 data bytes.

There is no file comment.

Central directory entry #2:

---------------------------

b.c

offset of local header from start of archive: 54 (00000036h) bytes

file system or operating system of origin: Unix

version of encoding software: 2.3

minimum file system compatibility required: MS-DOS, OS/2 or NT FAT

minimum software version required to extract: 1.0

compression method: none (stored)

file security status: not encrypted

extended local header: no

file last modified on (DOS date/time): 2010 May 24 18:54:26

file last modified on (UT extra field modtime): 2010 May 24 18:54:26 local

file last modified on (UT extra field modtime): 2010 May 24 10:54:26 UTC

32-bit CRC value (hex): 00000000

compressed size: 0 bytes

uncompressed size: 0 bytes

length of filename: 3 characters

length of extra field: 13 bytes

length of file comment: 0 characters

disk number on which file begins: disk 1

apparent file type: binary

Unix file attributes (100644 octal): -rw-r--r--

MS-DOS file attributes (00 hex): none

The central-directory extra field contains:

- A subfield with ID 0x5455 (universal time) and 5 data bytes.

The local extra field has UTC/GMT modification/access times.

- A subfield with ID 0x7855 (Unix UID/GID) and 0 data bytes.

There is no file comment.

Central directory entry #3:

---------------------------

c.c

offset of local header from start of archive: 108 (0000006Ch) bytes

file system or operating system of origin: Unix

version of encoding software: 2.3

minimum file system compatibility required: MS-DOS, OS/2 or NT FAT

minimum software version required to extract: 1.0

compression method: none (stored)

file security status: not encrypted

extended local header: no

file last modified on (DOS date/time): 2010 May 24 18:54:26

file last modified on (UT extra field modtime): 2010 May 24 18:54:26 local

file last modified on (UT extra field modtime): 2010 May 24 10:54:26 UTC

32-bit CRC value (hex): 00000000

compressed size: 0 bytes

uncompressed size: 0 bytes

length of filename: 3 characters

length of extra field: 13 bytes

length of file comment: 0 characters

disk number on which file begins: disk 1

apparent file type: binary

Unix file attributes (100644 octal): -rw-r--r--

MS-DOS file attributes (00 hex): none

The central-directory extra field contains:

- A subfield with ID 0x5455 (universal time) and 5 data bytes.

The local extra field has UTC/GMT modification/access times.

- A subfield with ID 0x7855 (Unix UID/GID) and 0 data bytes.

There is no file comment.

Central directory entry #4:

---------------------------

e.c

offset of local header from start of archive: 162 (000000A2h) bytes

file system or operating system of origin: Unix

version of encoding software: 2.3

minimum file system compatibility required: MS-DOS, OS/2 or NT FAT

minimum software version required to extract: 1.0

compression method: none (stored)

file security status: not encrypted

extended local header: no

file last modified on (DOS date/time): 2010 May 24 18:54:26

file last modified on (UT extra field modtime): 2010 May 24 18:54:26 local

file last modified on (UT extra field modtime): 2010 May 24 10:54:26 UTC

32-bit CRC value (hex): 00000000

compressed size: 0 bytes

uncompressed size: 0 bytes

length of filename: 3 characters

length of extra field: 13 bytes

length of file comment: 0 characters

disk number on which file begins: disk 1

apparent file type: binary

Unix file attributes (100644 octal): -rw-r--r--

MS-DOS file attributes (00 hex): none

The central-directory extra field contains:

- A subfield with ID 0x5455 (universal time) and 5 data bytes.

The local extra field has UTC/GMT modification/access times.

- A subfield with ID 0x7855 (Unix UID/GID) and 0 data bytes.

There is no file comment.

info命令Linux,Linux zipinfo命令相关推荐

  1. linux命令中info,Linux中zipinfo命令起什么作用呢?

    摘要: 下文讲述Linux中zipinfo的功能说明,如下所示: zipinfo(zip information的英文缩写) zipinfo命令功能: 用于输出压缩文件信息, 返回压缩文件的详细信息 ...

  2. linux zipinfo 命令详解

    linux zipinfo 命令详解 功能说明:列出压缩文件信息. 语 法:zipinfo [-12hlmMstTvz][压缩文件][文件...][-x <范本样式>] 补充说明:执行zi ...

  3. 【Linux】一步一步学Linux——zipinfo命令(69)

    00. 目录 文章目录 00. 目录 01. 命令概述 02. 命令格式 03. 常用选项 04. 参考示例 05. 附录 01. 命令概述 zipinfo命令的全称为"zip inform ...

  4. Android adb命令,linux中各种命令

    常用的ADB命令 1. 显示系统中全部Android平台: android list targets 2. 显示系统中全部AVD(模拟器): android list avd 3. 创建AVD(模拟器 ...

  5. linux 上plsql命令_在 Linux 上压缩文件:zip 命令的各种变体及用法 | Linux 中国

    除了压缩和解压缩文件外,你还可以使用 zip 命令执行许多有趣的操作.这是一些其他的 zip 选项以及它们如何提供帮助.-- Sandra Henry-stocker 为了节省一些磁盘空间并将文件打包 ...

  6. linux编辑搜索命令,Linux 命令大全提供 500 多个 Linux 命令搜索

    Linux命令分类 这里存放Linux 命令大全并不全,你可以通过linux-command来搜索,它是把 command 目录里面搜集的命令,生成了静态HTML并提供预览以及索引搜索. 文件传输 b ...

  7. linux下常用命令

    目  录 引言    1 一.安装和登录    2 (一)    login    2 (二)    shutdown    2 (三)    halt    3 (四)    reboot    3 ...

  8. Linux文件搜索命令介绍——locate、find、xargs、touch、stat

    本文主要介绍两个用在Linux系统中搜索文件的工具. locate:通过文件名查找文件 find:在文件系统目录框架中查找文件 同时,我们也会介绍一个通常与文件搜索命令一起使用.处理搜索结果文件列表的 ...

  9. 《Linux 后台开发命令300》目录(更新 ing)

    文章目录 前言 本书由来 内容简介 目标读者 互动勘误 帮助命令 文件系统 1.文件与目录查看 2.文件与目录管理 3.文本查看 4.文本编辑 5.文件查找 6.打包与压缩 7.磁盘管理 进程管理 1 ...

最新文章

  1. 利用radio实现Datagrid的单选
  2. I2C与SPI总线对比
  3. linux pcl 转图片,PCL转图片工具Mgosoft PCL To Image Converter
  4. 使用Stream流的方式,遍历集合,对集合中的数据进行过滤
  5. 优化Linux下的内核TCP参数来提高服务器负载能力
  6. vue 外部方法调用内部_vue函数内部调用外部函数,报错外部函数不是函数
  7. NOIP2016换教室 BZOJ 4720
  8. 「leetcode」222.完全二叉树的节点个数
  9. java自动阅卷判断选择题,客观题型自动阅卷系统(管道过滤器模式)
  10. 银行客户用户画像_大数据精准营销用户画像是核心-金融业大数据用户画像实践...
  11. 【高等数学】曲线的切线与法平面和曲面的切平面与法线
  12. [渝粤教育] 九江学院 计量经济学 参考 资料
  13. svchost.exe病毒-任务栏怎么也关闭不掉的搜索框
  14. 使用WebGL 自定义 3D 摄像头监控模型
  15. 2022-2028年全球及中国汽车保险丝行业投资前景分析
  16. 【工具】MobaXterm常用设置
  17. 21 07 13学习总结
  18. 红米note4 android4,红米 note 4(Redmi Note 4 标准版 全网通)刷机详解教程,秒懂刷机...
  19. java实现 移动平均值 复杂度,在EXCEL折线图里增加平均线和上下限|excle统计图怎设置上下限...
  20. 2021年起重机司机(限桥式起重机)考试内容及起重机司机(限桥式起重机)复审模拟考试

热门文章

  1. 库克:5G iPhone目前还不是我们考虑的问题
  2. 摩托罗拉G7系列发布:G7 Plus还有中国红配色
  3. 构造函数后面的冒号后初始化列表
  4. Android Studio中手机能连接上ADB不过一直跑不起来(或者应用出现短暂的白屏)
  5. 数组(array)(小谈)
  6. 禁用了ssh的密码认证方式导致无法登陆
  7. 中国程序员和外国程序员
  8. windows media player upnp
  9. KubeEdge 1.1 部署
  10. Java操作itext,寻找给定关键字,并且进行页面抽取和页面盖章两个操作