位置:- 正文

zipinfo命令 查看压缩文件信息(查看zip内容)

编辑:rootadmin
zipinfo命令来自英文词组“zip information”的缩写,其功能是用于查看压缩文件信息。zipi

推荐整理分享zipinfo命令 查看压缩文件信息(查看zip内容),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:linux查看zip压缩包里面的内容,linux zip查看,查看zip文件,查看zip内容,查看zip文件命令,查看zip命令是否安装成功,linux查看zip文件内容命令,查看zip包内容的命令,内容如对您有帮助,希望把文章链接给更多的朋友!

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

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

zipinfo命令  查看压缩文件信息(查看zip内容)

常用参数:

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

参考示例

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

[root@linuxcool ~]# zipinfo File.zip Archive: File.zipZip 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.cfg2 files, 2841 bytes uncompressed, 1589 bytes compressed: 44.1%

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

[root@linuxcool ~]# zipinfo -v File.zip Archive: File.zipThere 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; itscentral directory contains 2 entries.The central directory is 175 (00000000000000AFh) bytes long,and its (expected) offset in bytes from the beginning of the zipfileis 1740 (00000000000006CCh).………………省略部分输出信息………………

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

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

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

[root@linuxcool ~]# zipinfo -T File.zip Archive: File.zipZip 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.cfg2 files, 2841 bytes uncompressed, 1589 bytes compressed: 44.1%与该功能相关的Linux命令:bzcat命令 读取bzip2压缩文件的内容unzip命令 解压缩zip格式文件gunzip命令 解压提取文件内容bzip2命令 压缩或解压缩.bz2文件ar命令 建立或修改备存文件gzip命令 压缩和解压文件uudecode命令 还原档案zfore命令 强制添加.gz后缀lha命令 压缩或解压文件znew命令 将.Z压缩包重新转化.gz压缩包
本文链接地址:https://www.jiuchutong.com/zhishi/302690.html 转载请保留说明!
下一篇链接:https://www.jiuchutong.com/zhishi/302691.html
免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络