{"id":19367,"date":"2017-01-08T06:43:05","date_gmt":"2017-01-07T22:43:05","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/25793\/2017\/01\/08\/linux-%e4%b8%8b-7z-%e7%9a%84%e4%bd%bf%e7%94%a8%e6%96%b9%e5%bc%8f\/"},"modified":"2017-01-08T06:43:05","modified_gmt":"2017-01-07T22:43:05","slug":"linux-%e4%b8%8b-7z-%e7%9a%84%e4%bd%bf%e7%94%a8%e6%96%b9%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/25793\/2017\/01\/08\/linux-%e4%b8%8b-7z-%e7%9a%84%e4%bd%bf%e7%94%a8%e6%96%b9%e5%bc%8f\/","title":{"rendered":"Linux \u4e0b 7z \u7684\u4f7f\u7528\u65b9\u5f0f"},"content":{"rendered":"<p>CentOS 7.x \u5b89\u88dd<br \/># <span style=\"color: #ff0000;\">yum install epel-release<\/span><br \/># <span style=\"color: #ff0000;\">yum update<\/span><br \/># <span style=\"color: #ff0000;\">yum install p7zip<\/span><\/p>\n<p>Arch Linux \u5b89\u88dd<br \/># <span style=\"color: #ff0000;\">pacman -S\u00a0p7zip<\/span><\/p>\n<p>Ubuntu \/ Debian<br \/># <span style=\"color: #ff0000;\">apt-get install p7zip-full<\/span>\u00a0<br \/>\u6216<br \/># <span style=\"color: #ff0000;\">apt-get install p7zip<\/span>[@more@]CentOS \u53ef\u7528\u6307\u4ee4 <span style=\"color: #0000ff;\">7za<\/span><br \/>Arch Linux \/ Debian \/ Ubuntu \u53ef\u7528\u6307\u4ee4 <span style=\"color: #0000ff;\">7z<\/span> \/ <span style=\"color: #0000ff;\">7za<\/span><\/p>\n<p>\u5e38\u7528\u53c3\u6578<br \/>\u58d3\u7e2e<br \/># <span style=\"color: #ff0000;\">7z a \u58d3\u7e2e\u6a94\u540d.7z \u8981\u58d3\u7e2e\u7684\u6a94\u6848\u6216\u76ee\u93041 \u8981\u58d3\u7e2e\u7684\u6a94\u6848\u6216\u76ee\u93042<\/span><\/p>\n<p>\u89e3\u58d3\u7e2e<br \/># <span style=\"color: #ff0000;\">7z x \u58d3\u7e2e\u6a94\u540d.7z<\/span><br \/>\u6216<br \/># <span style=\"color: #ff0000;\">7z e \u58d3\u7e2e\u6a94\u540d.7z<\/span><\/p>\n<p><span style=\"color: #ff0000;\">x<\/span> \u548c <span style=\"color: #ff0000;\">e<\/span> \u5dee\u5225\uff0c\u5982\u679c\u5efa\u7acb\u58d3\u7e2e\u6a94\u6642\u6709\u5305\u542b\u76ee\u9304\uff0c\u5247 <span style=\"color: #ff0000;\">x<\/span> \u6703\u4f9d\u7167\u539f\u672c\u58d3\u7e2e\u6642\u7684\u6a23\u5b50\u4f86\u9084\u539f\uff0c<span style=\"color: #ff0000;\">e<\/span> \u6703\u5efa\u7acb\u539f\u4f86\u7684\u7a7a\u76ee\u9304\u540d\u7a31\uff0c\u4e26\u628a\u6a94\u6848\u89e3\u958b\u5728\u76ee\u9304\u540d\u7a31\u7684\u5916\u9762<br \/>\u539f\u5247\u4e0a\u6703\u5efa\u8b70\u4f7f\u7528 <span style=\"color: #ff0000;\">x<\/span><\/p>\n<p>\u5217\u51fa\u58d3\u7e2e\u6a94\u7684\u5167\u5bb9<br \/># <span style=\"color: #ff0000;\">7z l \u58d3\u7e2e\u6a94\u540d.7z<\/span><\/p>\n<p>\u89e3\u58d3\u7e2e\u6642\u6307\u5b9a\u76ee\u9304<br \/># <span style=\"color: #ff0000;\">7z x \u58d3\u7e2e\u6a94\u540d.7z -o\u76ee\u9304\u4f4d\u7f6e<\/span><br \/><span style=\"color: #ff0000;\"><span style=\"color: #000000;\">#<\/span> 7z x 123.7z -o\/tmp<\/span><\/p>\n<p>\u66f4\u591a\u7684\u53c3\u6578<br \/># <span style=\"color: #ff0000;\">7z &#8211;help<\/span><\/p>\n<p><span style=\"color: #0000ff;\">&lt;Commands&gt;<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 a : Add files to archive<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 b : Benchmark<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 d : Delete files from archive<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 e : Extract files from archive (without using directory names)<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 h : Calculate hash values for files<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 i : Show information about supported formats<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 l : List contents of archive<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 rn : Rename files in archive<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 t : Test integrity of archive<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 u : Update files to archive<\/span><br \/><span style=\"font-size: 1em; color: #0000ff;\">\u00a0 x : eXtract files with full paths<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CentOS 7.x \u5b89\u88dd# yum install epel-release# yum update# yu &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/2blog.ilc.edu.tw\/25793\/2017\/01\/08\/linux-%e4%b8%8b-7z-%e7%9a%84%e4%bd%bf%e7%94%a8%e6%96%b9%e5%bc%8f\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008Linux \u4e0b 7z \u7684\u4f7f\u7528\u65b9\u5f0f\u3009<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[167,117,119],"tags":[],"class_list":["post-19367","post","type-post","status-publish","format-standard","hentry","category-c-84386","category-c-78462","category-c-78464"],"meta_key":{"_pingme":["1"],"_encloseme":["1"],"lt_post_id":["680600"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19367"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/comments?post=19367"}],"version-history":[{"count":0,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19367\/revisions"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/media?parent=19367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/categories?post=19367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/tags?post=19367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}