{"id":1180,"date":"2019-04-27T11:37:55","date_gmt":"2019-04-27T03:37:55","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=1180"},"modified":"2019-04-28T13:26:45","modified_gmt":"2019-04-28T05:26:45","slug":"bzip2","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/bzip2","title":{"rendered":"bzip2\u547d\u4ee4 – bz2\u6587\u4ef6\u7684\u538b\u7f29\u7a0b\u5e8f"},"content":{"rendered":"\n

Linux\u7cfb\u7edf\u4e2dbzip2\u547d\u4ee4\u7684\u82f1\u6587\u662f\u201cbunzip2\u201d\uff0c\u5373.bz2\u6587\u4ef6\u683c\u5f0f\u7684\u538b\u7f29\u7a0b\u5e8f\uff1b bzip2\u547d\u4ee4\u7cfb\u7edf\u9ed8\u8ba4\u662f\u6ca1\u6709\u5b89\u88c5\u7684\uff0c\u9700\u8981\u5b89\u88c5bzip2\u5e93\u624d\u53ef\u4ee5\u4f7f\u7528\u6b64\u547d\u4ee4\u3002 <\/p>\n\n\n\n

bzip2\u547d\u4ee4\u91c7\u7528\u65b0\u7684\u538b\u7f29\u6f14\u7b97\u6cd5\uff0c\u538b\u7f29\u6548\u679c\u6bd4\u4f20\u7edf\u7684LZ77\/LZ78\u538b\u7f29\u6f14\u7b97\u6cd5\u6765\u5f97\u597d\u3002\u82e5\u6ca1\u6709\u52a0\u4e0a\u4efb\u4f55\u53c2\u6570\uff0cbzip2\u538b\u7f29\u5b8c\u6587\u4ef6\u540e\u4f1a\u4ea7\u751f.bz2\u7684\u538b\u7f29\u6587\u4ef6\uff0c\u5e76\u5220\u9664\u539f\u59cb\u7684\u6587\u4ef6\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>bzip2 [\u53c2\u6570] \u6587\u4ef6\u7cfb\u7edf<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-c<\/td>\u5c06\u538b\u7f29\u4e0e\u89e3\u538b\u7f29\u7684\u7ed3\u679c\u9001\u5230\u6807\u51c6\u8f93\u51fa<\/td><\/tr>
-d<\/td>\u6267\u884c\u89e3\u538b\u7f29<\/td><\/tr>
-f<\/td>bzip2\u5728\u538b\u7f29\u6216\u89e3\u538b\u7f29\u65f6\uff0c\u82e5\u8f93\u51fa\u6587\u4ef6\u4e0e\u73b0\u6709\u6587\u4ef6\u540c\u540d\uff0c\u9884\u8bbe\u4e0d\u4f1a\u8986\u76d6\u73b0\u6709\u6587\u4ef6\u3002\u82e5\u8981\u8986\u76d6\uff0c\u8bf7\u4f7f\u7528\u6b64\u53c2\u6570<\/td><\/tr>
-k<\/td>bzip2\u5728\u538b\u7f29\u6216\u89e3\u538b\u7f29\u540e\uff0c\u4f1a\u5220\u9664\u539f\u59cb\u7684\u6587\u4ef6\u3002\u82e5\u8981\u4fdd\u7559\u539f\u59cb\u6587\u4ef6\uff0c\u8bf7\u4f7f\u7528\u6b64\u53c2\u6570<\/td><\/tr>
-s<\/td>\u964d\u4f4e\u7a0b\u5e8f\u6267\u884c\u65f6\u5185\u5b58\u7684\u4f7f\u7528\u91cf<\/td><\/tr>
-t<\/td>\u6d4b\u8bd5.bz2\u538b\u7f29\u6587\u4ef6\u7684\u5b8c\u6574\u6027<\/td><\/tr>
-v<\/td>\u538b\u7f29\u6216\u89e3\u538b\u7f29\u6587\u4ef6\u65f6\uff0c\u663e\u793a\u8be6\u7ec6\u7684\u4fe1\u606f<\/td><\/tr>
-z<\/td>\u5f3a\u5236\u6267\u884c\u538b\u7f29<\/td><\/tr><\/tbody><\/table>\n\n\n\n

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

\u538b\u7f29\u6587\u4ef6\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# bzip2 a.txt\n<\/pre>\n\n\n\n

\u68c0\u67e5\u6587\u4ef6\u5b8c\u6574\u6027\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# bzip2 -t a.txt.bz2\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

Linux\u7cfb\u7edf\u4e2dbzip2\u547d\u4ee4\u7684\u82f1\u6587\u662f\u201cbunzip2\u201d\uff0c\u5373.bz2\u6587\u4ef6\u683c\u5f0f\u7684\u538b\u7f29\u7a0b\u5e8f\uff1b bzip2\u547d\u4ee4\u7cfb\u7edf\u9ed8 […]<\/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\/1180"}],"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=1180"}],"version-history":[{"count":11,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1180\/revisions"}],"predecessor-version":[{"id":1562,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1180\/revisions\/1562"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=1180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=1180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=1180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}