{"id":2125,"date":"2019-05-24T23:47:35","date_gmt":"2019-05-24T15:47:35","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=2125"},"modified":"2022-06-05T14:26:21","modified_gmt":"2022-06-05T06:26:21","slug":"zipinfo","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/zipinfo","title":{"rendered":"zipinfo\u547d\u4ee4 – \u67e5\u770b\u538b\u7f29\u6587\u4ef6\u4fe1\u606f"},"content":{"rendered":"\n

zipinfo\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201czip information\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u67e5\u770b\u538b\u7f29\u6587\u4ef6\u4fe1\u606f\u3002zipinfo\u547d\u4ee4\u53ef\u4ee5\u67e5\u770bzip\u683c\u5f0f\u538b\u7f29\u5305\u5185\u7684\u6587\u4ef6\u5217\u8868\u53ca\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>zipinfo [\u53c2\u6570] \u538b\u7f29\u5305<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-1 <\/td>\u53ea\u5217\u51fa\u6587\u4ef6\u540d\u79f0<\/td><\/tr>
-h <\/td>\u53ea\u5217\u51fa\u538b\u7f29\u6587\u4ef6\u540d\u79f0 <\/td><\/tr>
-l<\/td>\u5217\u51fa\u539f\u59cb\u6587\u4ef6\u7684\u5927\u5c0f<\/td><\/tr>
-m <\/td>\u5217\u51fa\u6bcf\u4e2a\u6587\u4ef6\u7684\u538b\u7f29\u7387<\/td><\/tr>
-M <\/td>\u4ee5\u5206\u9875\u5f62\u5f0f\u663e\u793a\u5185\u5bb9<\/td><\/tr>
-s <\/td>\u5217\u51fa\u538b\u7f29\u6587\u4ef6\u5185\u5bb9<\/td><\/tr>
-t <\/td>\u5217\u51fa\u538b\u7f29\u524d\u540e\u5927\u5c0f\u53ca\u538b\u7f29\u7387<\/td><\/tr>
-T <\/td>\u5217\u51fa\u6bcf\u4e2a\u6587\u4ef6\u7684\u65e5\u671f\u65f6\u95f4<\/td><\/tr>
-v <\/td>\u8be6\u7ec6\u663e\u793a\u6bcf\u4e00\u4e2a\u6587\u4ef6\u7684\u4fe1\u606f<\/td><\/tr>
-x<\u8303\u672c\u6837\u5f0f> <\/td>\u4e0d\u5217\u51fa\u7b26\u5408\u6761\u4ef6\u7684\u6587\u4ef6\u7684\u4fe1\u606f<\/td><\/tr>
-z <\/td>\u5c06\u6ce8\u91ca\u663e\u793a\u51fa\u6765<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u663e\u793a\u538b\u7f29\u5305\u5185\u7684\u6587\u4ef6\u540d\u79f0\u53ca\u7b80\u8981\u5c5e\u6027\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# zipinfo file.zip <\/strong>\nArchive:  file.zip\nZip file size: 1937 bytes, number of entries: 2\n-rw-------  3.0 unx     1256 tx defN 21-Dec-14 08:42 anaconda-ks.cfg\n-rw-r--r--  3.0 unx     1585 tx defN 21-Dec-14 08:43 initial-setup-ks.cfg\n2 files, 2841 bytes uncompressed, 1589 bytes compressed:  44.1%<\/pre>\n\n\n\n

\u663e\u793a\u538b\u7f29\u5305\u5185\u7684\u6587\u4ef6\u540d\u79f0\u53ca\u8be6\u7ec6\u5c5e\u6027\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# zipinfo -v file.zip <\/strong>\nArchive:  file.zip\nThere is no zipfile comment.\n\nEnd-of-central-directory record:\n-------------------------------\n\n  Zip archive file size:                      1937 (0000000000000791h)\n  Actual end-cent-dir record offset:          1915 (000000000000077Bh)\n  Expected end-cent-dir record offset:        1915 (000000000000077Bh)\n  (based on the length of the central directory and its expected offset)\n\n  This zipfile constitutes the sole disk of a single-part archive; its\n  central directory contains 2 entries.\n  The central directory is 175 (00000000000000AFh) bytes long,\n  and its (expected) offset in bytes from the beginning of the zipfile\n  is 1740 (00000000000006CCh).\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026<\/pre>\n\n\n\n

\u4ec5\u663e\u793a\u538b\u7f29\u5305\u5185\u6587\u4ef6\u5927\u5c0f\u53ca\u6570\u76ee\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# zipinfo -h file.zip<\/strong>\nArchive:  file.zip\nZip file size: 1937 bytes, number of entries: 2<\/pre>\n\n\n\n

\u4ec5\u663e\u793a\u538b\u7f29\u5305\u5185\u6587\u4ef6\u6700\u540e\u4fee\u6539\u65f6\u95f4\u53ca\u7b80\u8981\u5c5e\u6027\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# zipinfo -T file.zip <\/strong>\nArchive:  file.zip\nZip file size: 1937 bytes, number of entries: 2\n-rw-------  3.0 unx     1256 tx defN 20211214.084220 anaconda-ks.cfg\n-rw-r--r--  3.0 unx     1585 tx defN 20211214.084343 initial-setup-ks.cfg\n2 files, 2841 bytes uncompressed, 1589 bytes compressed:  44.1%<\/pre>\n","protected":false},"excerpt":{"rendered":"

zipinfo\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201czip information\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u67e5\u770b\u538b\u7f29\u6587\u4ef6\u4fe1\u606f\u3002zip […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[8],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2125"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=2125"}],"version-history":[{"count":10,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2125\/revisions"}],"predecessor-version":[{"id":10209,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2125\/revisions\/10209"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=2125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=2125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=2125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}