首页IT科技查看压缩包命令在哪(zipinfo命令 – 查看压缩文件信息)

查看压缩包命令在哪(zipinfo命令 – 查看压缩文件信息)

时间2025-06-20 21:44:29分类IT科技浏览5750
导读:zipinfo命令来自英文词组“zip information”的缩写,其功能是用于查看压缩文件信息。zipinfo命令可以查看zip格式压缩包内的文件列表及详细信息。...

zipinfo命令来自英文词组“zip information            ”的缩写            ,其功能是用于查看压缩文件信息             。zipinfo命令可以查看zip格式压缩包内的文件列表及详细信息                  。

语法格式:zipinfo [参数] 压缩包

常用参数:

-1 只显示文件名 -C 不区分大小写 -h 只显示压缩文件名 -l 显示原始文件的大小 -m 显示每个文件的压缩率 -M 以分页形式显示内容 -s 显示压缩文件内容 -t 显示压缩前后大小及压缩率 -T 显示每个文件的日期时间 -v 显示执行过程详细信息 -x 不显示符合条件的文件信息 -z 显示文件注释信息

参考示例

显示压缩包内的文件名称及简要属性信息:

[root@linuxcool ~]# zipinfo File.zip Archive: File.zip Zip file size: 1937 bytes, number of entries: 2 -rw------- 3.0 unx 1256 tx defN 23-Dec-14 08:42 anaconda-ks.cfg -rw-r--r-- 3.0 unx 1585 tx defN 23-Dec-14 08:43 initial-setup-ks.cfg 2 files, 2841 bytes uncompressed, 1589 bytes compressed: 44.1%

显示压缩包内的文件名称及详细属性信息:

[root@linuxcool ~]# zipinfo -v File.zip Archive: File.zip There is no zipfile comment. End-of-central-directory record: ------------------------------- Zip archive file size: 1937 (0000000000000791h) Actual end-cent-dir record offset: 1915 (000000000000077Bh) Expected end-cent-dir record offset: 1915 (000000000000077Bh) (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 2 entries. The central directory is 175 (00000000000000AFh) bytes long, and its (expected) offset in bytes from the beginning of the zipfile is 1740 (00000000000006CCh). ………………省略部分输出信息………………

仅显示压缩包内文件大小及数目信息:

[root@linuxcool ~]# zipinfo -h File.zip Archive: File.zip Zip file size: 1937 bytes, number of entries: 2

仅显示压缩包内文件最后修改时间及简要属性信息:

[root@linuxcool ~]# zipinfo -T File.zip Archive: File.zip Zip file size: 1937 bytes, number of entries: 2 -rw------- 3.0 unx 1256 tx defN 20231214.084220 anaconda-ks.cfg -rw-r--r-- 3.0 unx 1585 tx defN 20231214.084343 initial-setup-ks.cfg 2 files, 2841 bytes uncompressed, 1589 bytes compressed: 44.1%
声明:本站所有文章                   ,如无特殊说明或标注      ,均为本站原创发布      。任何个人或组织      ,在未征得本站同意时                   ,禁止复制             、盗用                  、采集      、发布本站内容到任何网站             、书籍等各类媒体平台             。如若本站内容侵犯了原著者的合法权益            ,可联系我们进行处理                  。

创心域SEO版权声明:以上内容作者已申请原创保护,未经允许不得转载,侵权必究!授权事宜、对本内容有异议或投诉,敬请联系网站管理员,我们将尽快回复您,谢谢合作!

展开全文READ MORE
ctf web解题(CTF—web题库笔记(难度1))