{"id":7133,"date":"2020-04-26T19:10:14","date_gmt":"2020-04-26T11:10:14","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7133"},"modified":"2022-05-14T20:24:52","modified_gmt":"2022-05-14T12:24:52","slug":"7z","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/7z","title":{"rendered":"7z\u547d\u4ee4 – \u6587\u4ef6\u89e3\u538b\u7f29\u547d\u4ee4"},"content":{"rendered":"\n

7z\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201c7-zip\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u6587\u4ef6\u89e3\u538b\u7f29\u5de5\u4f5c\u30027-zip\u5e94\u8be5\u662fLinux\u7cfb\u7edf\u4e2d\u5e38\u7528\u7684\u89e3\u538b\u7f29\u5de5\u5177\u4e86\uff0c7z\u662f\u4e00\u79cd\u538b\u7f29\u683c\u5f0f\uff0c\u5177\u5907\u8f83\u9ad8\u7684\u538b\u7f29\u6bd4\u7387\uff0c\u5bf9\u6587\u672c\u6587\u4ef6\u5c24\u5176\u6709\u6548\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>7z [\u53c2\u6570] \u6587\u4ef6<\/p>\n\n\n\n

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

a  <\/td>\u6dfb\u52a0\u6587\u4ef6\u5230\u538b\u7f29\u5305<\/td><\/tr>
d<\/td>\u4ece\u538b\u7f29\u5305\u4e2d\u5220\u9664\u6587\u4ef6<\/td><\/tr>
e<\/td>\u4ece\u538b\u7f29\u5305\u4e2d\u63d0\u53d6\u6587\u4ef6<\/td><\/tr>
t<\/td>\u6d4b\u8bd5\u538b\u7f29\u5305\u662f\u5426\u5b8c\u6574<\/td><\/tr>
u<\/td>\u66f4\u65b0\u538b\u7f29\u5305\u4e2d\u7684\u6587\u4ef6<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u5bf9\u6307\u5b9a\u7684\u76ee\u5f55\u8fdb\u884c\u538b\u7f29\u5de5\u4f5c\uff0c\u5b8c\u6210\u7684\u538b\u7f29\u5305\u4ee57z\u4e3a\u540e\u7f00\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# 7z a backup.7z \/home<\/strong><\/pre>\n\n\n\n

\u5bf9\u6307\u5b9a\u7684\u538b\u7f29\u5305\u6587\u4ef6\u8fdb\u884c\u89e3\u538b\u7f29\u5de5\u4f5c\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# 7z x backup.7z<\/strong><\/pre>\n\n\n\n

\u5c06\u6307\u5b9a\u538b\u7f29\u5305\u5185\u7684\u4ee5txt\u7ed3\u5c3e\u7684\u6587\u4ef6\u90fd\u5220\u9664\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# 7z d backup.7z -r *.txt<\/strong><\/pre>\n\n\n\n

\u66f4\u65b0\u6307\u5b9a\u538b\u7f29\u5305\u5185\u7684\u4ee5txt\u7ed3\u5c3e\u7684\u6587\u4ef6\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# 7z u backup.7z *.txt<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"

7z\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201c7-zip\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u6587\u4ef6\u89e3\u538b\u7f29\u5de5\u4f5c\u30027-zip\u5e94\u8be5\u662fLinux\u7cfb\u7edf\u4e2d\u5e38\u7528\u7684 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7133"}],"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=7133"}],"version-history":[{"count":15,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7133\/revisions"}],"predecessor-version":[{"id":9709,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7133\/revisions\/9709"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}