{"id":15554,"date":"2023-07-31T04:03:49","date_gmt":"2023-07-30T20:03:49","guid":{"rendered":"https:\/\/www.linuxcool.com\/lxtxcydzhuml"},"modified":"2023-07-31T04:03:49","modified_gmt":"2023-07-30T20:03:49","slug":"lxtxcydzhuml","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/lxtxcydzhuml","title":{"rendered":"Linux\u7cfb\u7edf\u4e0b\u5e38\u7528\u7684zip\u548cunzip\u547d\u4ee4doc\u505a\u4e2a\u603b\u7ed3"},"content":{"rendered":"<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u56e0\u4e3a\u670d\u52a1\u5668\u4f7f\u7528\u7684\u662fCentOS<a style='color:#0000CC;font-size:16px' href='https:\/\/www.linuxdown.com\/' target='_blank' rel=\"noopener\">\u7cfb\u7edf<\/a>linux\u5220\u9664\u6587\u4ef6\u5939\uff0c\u5bf9\u4e8e\u6587\u4ef6\u7684\u538b\u7f29\u548c\u89e3\u538b\u7f29\u514d\u4e0d\u4e86\u8981\u4f7f\u7528<a style='color:#0000CC;font-size:16px' href='https:\/\/www.linuxcool.com\/' target='_blank' rel=\"noopener\">\u547d\u4ee4<\/a>\u64cd\u4f5c\uff0c\u8fd9\u513f\u6211\u5bf9<a style='color:#0000CC;font-size:16px' href='https:\/\/www.linuxprobe.com\/' target='_blank' rel=\"noopener\">Linux<\/a>\u7cfb\u7edf\u4e0b\u5e38\u7528\u7684zip\u548cunzip\u547d\u4ee4\u505a\u4e2a\u603b\u7ed3\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4e00\u3001zip\u538b\u7f291<strong>linux \u547d\u4ee4\u538b\u7f29\u56fe\u7247<\/strong>\uff0c\u5e94\u7528\u5b9e\u4f8b<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\uff081\uff09\u5c06\u5f53\u524d\u6587\u4ef6\u5939\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u6253\u5305\u6210\u4e00\u4e2anew1.zip\u6587\u4ef6<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre class=\"brush:js;toolbar:false\">zip new1.zip *\n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\uff082\uff09\u628a\u5f53\u524d\u6587\u4ef6\u5939\u4e0b\u6240\u6709my1*.doc\u7684\u6587\u4ef6\u6253\u5305\u6210\u4e00\u4e2anew1.zip\u6587\u4ef6<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre class=\"brush:js;toolbar:false\">zip new1.zip my1*.doc\n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\uff083\uff09\u628a\u4e00\u4e2a\u6587\u4ef6abc.txt\u548c\u4e00\u4e2a\u76ee\u5f55dir1\u538b\u7f29\u6210\u4e3ayasuo.zip<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre class=\"brush:js;toolbar:false\">zip -r yasuo.zip abc.txt dir1\n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\uff084\uff09\u5c06\/home\/Blinux\/html\/\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u6240\u6709\u6587\u4ef6\u548c\u6587\u4ef6\u5939\u6253\u5305\u4e3a\u5f53\u524d\u76ee\u5f55\u4e0b\u7684html.zip<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5907\u6ce8\uff1a-q\u4e3a\u5b89\u9759\u6a21\u5f0f\uff0c\u5728\u538b\u7f29\u7684\u65f6\u4faf\u4e0d\u663e\u793a\u6307\u4ee4\u7684\u6267\u884c\u8fc7\u7a0b<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre class=\"brush:js;toolbar:false\">zip -qr html.zip \/home\/Blinux\/html\n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2023\/07\/1690747428215_0.webp' alt='\u538b\u7f29\u6587\u4ef6\u547d\u4ee4linux_linux \u547d\u4ee4\u538b\u7f29\u56fe\u7247_linux\u547d\u4ee4\u884c\u538b\u7f29' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\uff085\uff09\u6dfb\u52a0\u4e00\u4e2a\u6587\u4ef6\u5230.zip\u6587\u4ef6\u4e2d<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5907\u6ce8\uff1a\u5047\u5982\u5f53\u5e74\u5e76\u6ca1\u6709\u628amy32.doc\u538b\u5728new1.zip\u4e0a\u9762\uff0c\u5982\u4eca\u628a\u5b83\u52a0\u8fdb\u53bb\u3002-g\u9009\u9879\u662f\u964d\u4f4e\u800c\u4e0d\u8981\u91cd\u65b0\u5f62\u6210\u7684\u610f\u601d\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre class=\"brush:js;toolbar:false\">zip -g new1.zip my32.doc\n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\uff086\uff09\u5c06\u66f4\u6539\u8fc7\u7684\u6587\u4ef6\u6dfb\u52a0\u5230\u538b\u7f29\u5305\u4e2d<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5907\u6ce8\uff1a\u5047\u5982\u5f53\u5e74my2*.doc\u90fd\u65e9\u5df2\u538b\u7f29\u8fdbnew1.zip\u4e0a\u9762\u4e86\uff0c\u7136\u800c\u540e\u6765my2*.doc\u4e2d\u6709\u51e0\u4e2a\u6587\u4ef6\u6709\u4fee\u6539\uff0c\u53c8\u4e0d\u60f3\u53bb\u627e\u51fa\u7a76\u7adf\u662f\u4ec0\u4e48\u6587\u4ef6\u4fee\u6539\u4e86\uff0c\u8fd9\u6761\u547d\u4ee4\u8bf7\u7cfb\u7edf\u81ea\u884c\u5e2e\u52a9\u68c0\u6d4b\uff0c\u66f4\u6539\u8fc7\u7684\u624d\u66f4\u65b0\u5230\u538b\u7f29\uff0c\u5426\u5219\u5c31\u6bcb\u987b\u52a8\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre class=\"brush:js;toolbar:false\">zip -u new1.zip my2*.doc\n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2023\/07\/1690747428215_1.png' alt='linux \u547d\u4ee4\u538b\u7f29\u56fe\u7247_\u538b\u7f29\u6587\u4ef6\u547d\u4ee4linux_linux\u547d\u4ee4\u884c\u538b\u7f29' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\uff087\uff09\u5220\u6389\u9664.zip\u6587\u4ef6\u4e2d\u7684\u6307\u5b9a\u6587\u4ef6<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5907\u6ce8\uff1a\u5047\u5982\u5f53\u5e74my18.doc\u662f\u538b\u7f29\u5728new1.zip\u4e2d\u7684\u4e00\u4e2a\u6587\u4ef6\uff0c\u5982\u4eca\u8fd9\u6761\u547d\u4ee4\u628a\u5b83\u4ece\u538b\u7f29\u6587\u4ef6\u4e2d\u62bd\u8d70\u5e76\u5220\u53bb\u3002-d\u662f\u5220\u6389\u7684\u610f\u601d\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre class=\"brush:js;toolbar:false\">zip -d new1.zip my18.doc\n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>2\uff0c\u4e3b\u8981\u53c2\u6570<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4e8c\u3001unzip\u89e3\u538b\u7f291\uff0c\u5e94\u7528\u5b9e\u4f8b\uff081\uff09\u628a\u6587\u4ef6\u89e3\u538b\u5230\u5f53\u524d\u76ee\u5f55\u4e0b<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre class=\"brush:js;toolbar:false\">unzip test.zip\n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\uff082\uff09\u5047\u5982\u8981\u628a\u6587\u4ef6\u89e3\u538b\u5230\u6307\u5b9a\u7684\u76ee\u5f55\u4e0b\uff0c\u987b\u8981\u7528\u5230-d\u53c2\u6570\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre class=\"brush:js;toolbar:false\">unzip -d \/temp test.zip\n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\uff083\uff09\u89e3\u538b\u7684\u65f6\u4fafredhat linux \u4e0b\u8f7d\uff0c\u6709\u65f6\u4faf\u4e0d\u60f3\u8986\u76d6\u65e9\u5df2\u5b58\u5728\u7684\u6587\u4ef6\uff0c\u8fd9\u4e48\u53ef\u4ee5\u52a0\u4e0a-n\u53c2\u6570<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre class=\"brush:js;toolbar:false\">unzip -n test.zip\nunzip -n -d \/temp test.zip\n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\uff084\uff09\u5c06\u538b\u7f29\u6587\u4ef6test.zip\u5728\u6307\u5b9a\u76ee\u5f55tmp\u4e0b\u89e3\u538b\u7f29\uff0c\u5047\u5982\u5df2\u6709\u76f8\u540c\u7684\u6587\u4ef6\u5b58\u5728<strong>linux \u547d\u4ee4\u538b\u7f29\u56fe\u7247<\/strong>\uff0c\u8981\u6c42unzip\u547d\u4ee4\u8986\u76d6\u5148\u524d\u7684\u6587\u4ef6<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre class=\"brush:js;toolbar:false\">unzip -o test.zip -d \/tmp\/\n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2023\/07\/1690747428215_2.jpg' alt='linux\u547d\u4ee4\u884c\u538b\u7f29_linux \u547d\u4ee4\u538b\u7f29\u56fe\u7247_\u538b\u7f29\u6587\u4ef6\u547d\u4ee4linux' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\uff085\uff09\u53ea\u770b\u4e00\u4e0bzip\u538b\u7f29\u5305\u4e2d\u5305\u542b\u4ec0\u4e48\u6587\u4ef6\uff0c\u4e0d\u8fdb\u884c\u89e3\u538b\u7f29<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre class=\"brush:js;toolbar:false\">unzip -l test.zip\n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\uff086\uff09\u67e5\u770b\u663e\u793a\u7684\u6587\u4ef6\u5217\u8868\u8fd8\u5305\u542b\u538b\u7f29\u767e\u5206\u6bd4<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre class=\"brush:js;toolbar:false\">unzip -v test.zip\n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\uff087\uff09\u68c0\u6d4bzip\u6587\u4ef6\u662f\u5426\u53d7\u635f<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre class=\"brush:js;toolbar:false\">unzip -t test.zip\n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>2\uff0c\u4e3b\u8981\u53c2\u6570<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uff086\uff09\u5c06\u66f4\u6539\u8fc7\u7684\u6587\u4ef6\u6dfb\u52a0\u5230\u538b\u7f29\u5305\u4e2d\u4e2d\u6709\u51e0\u4e2a\u6587\u4ef6\u6709\u66f4\u6539\uff0c\u53c8\u4e0d\u60f3\u53bb\u627e\u51fa\u5230\u5e95\u662f\u54ea\u4e9b\u6587\u4ef6\u66f4\u6539\u4e86\uff0c\u8fd9\u6761\u547d\u4ee4\u8bf7\u7cfb\u7edf\u81ea\u884c\u5e2e\u52a9\u68c0\u67e5\uff0c\u66f4\u6539\u8fc7\u7684\u624d\u66f4\u65b0\u5230\u538b\u7f29\uff0c\u5426\u5219\u5c31\u4e0d\u5fc5\u52a8\u3002\u4e2d\u7684\u4e00\u4e2a\u6587\u4ef6\uff0c\u73b0\u5728\u8fd9\u6761\u547d\u4ee4\u628a\u5b83\u4ece\u538b\u7f29\u6587\u4ef6\u4e2d\u62bd\u8d70\u5e76\u5220\u6389\u3002\u89e3\u538b\u7f291\uff0c\u5e94\u7528\u5b9e\u4f8b\uff081\uff09\u628a\u6587\u4ef6\u89e3\u538b\u5230\u5f53\u524d\u76ee\u5f55\u4e0b\uff082\uff09\u5982\u679c\u8981\u628a\u6587\u4ef6\u89e3\u538b\u5230\u6307\u5b9a\u7684\u76ee\u5f55\u4e0b\uff0c\u9700\u8981\u7528\u5230-d\u53c2\u6570\u3002\u538b\u7f29\u5305\u4e2d\u5305\u542b\u54ea\u4e9b\u6587\u4ef6\uff0c\u4e0d\u8fdb\u884c\u89e3\u538b\u7f29\uff086\uff09\u67e5\u770b\u663e\u793a\u7684\u6587\u4ef6\u5217\u8868\u8fd8\u5305\u542b\u538b\u7f29\u6bd4\u7387<\/p>\n","protected":false},"author":1,"featured_media":15555,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[176,386,32,84,194],"class_list":["post-15554","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledge","tag-ys","tag-db","tag-wj","tag-ml-2","tag-jy"],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/15554","targetHints":{"allow":["GET"]}}],"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=15554"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/15554\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media\/15555"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=15554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=15554"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=15554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}