{"id":291117,"date":"2024-04-26T21:19:21","date_gmt":"2024-04-26T13:19:21","guid":{"rendered":"https:\/\/lrxjmw.cn\/lhjxdzwjjyzn.html"},"modified":"2024-04-26T21:19:21","modified_gmt":"2024-04-26T13:19:21","slug":"lhjxdzwjjyzn","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lhjxdzwjjyzn.html","title":{"rendered":"Linux\u73af\u5883\u4e0b\u7684Z\u6587\u4ef6\u89e3\u538b\u6307\u5357\uff1a\u5de5\u5177\u4e0e\u6280\u5de7\u8be6\u89e3"},"content":{"rendered":"

\u5728linux\u64cd\u4f5c\u7cfb\u7edf<\/a>\u4e2dz\u6587\u4ef6 \u89e3\u538b linux<\/strong>\uff0c\u89e3\u538b\u538b\u7f29\u6587\u4ef6\u4e43\u65e5\u5e38\u4efb\u52a1\u4e4b\u4e00\u3002\u5173\u4e8eZ\u6587\u4ef6\u89e3\u538b\u65b9\u5f0f\u53ca\u6240\u9700\u5de5\u5177\uff0c\u672c\u6587\u5c06\u8be6\u7ec6\u89e3\u8bfb\uff0c\u5305\u62ec\u6280\u672f\u8981\u70b9\u4e0e\u4f7f\u7528\u987b\u77e5\uff0c\u65e8\u5728\u63d0\u9ad8\u8bfb\u8005\u5bf9\u8be5\u7c7b\u538b\u7f29\u6587\u4ef6\u7684\u5904\u7406\u6548\u7387\u3002<\/p>\n

\u4ec0\u4e48\u662fZ\u6587\u4ef6\uff1f<\/b><\/p>\n

Z\u6587\u4ef6\u5373\u91c7\u7528Lempel-Ziv\u538b\u7f29\u6280\u672f\u7684\u6587\u4ef6\u3002\u6b64\u7c7b\u6587\u4ef6\u7684\u538b\u7f29\u6548\u7387\u8f83\u9ad8\uff0c\u7136\u800c\uff0c\u5728Linux<\/a>\u73af\u5883\u4e2dz\u6587\u4ef6 \u89e3\u538b linux<\/strong>\uff0c\u5176\u5e76\u975e\u9884\u8bbe\u652f\u6301\u7684\u5e38\u7528\u538b\u7f29\u683c\u5f0f\uff0c\u76f8\u6bd4\u4e8ezip\u3001tar\u7b49\u683c\u5f0f\u8f83\u4e3a\u7f55\u89c1\u3002\u56e0\u6b64\uff0c\u5728\u5904\u7406Z\u6587\u4ef6\u65f6\uff0c\u9700\u501f\u52a9\u4e13\u7528\u5de5\u5177\u53ca\u65b9\u6cd5\u8fdb\u884c\u89e3\u538b\u64cd\u4f5c\u3002<\/p>\n

\u9009\u62e9\u5408\u9002\u7684\u89e3\u538b\u5de5\u5177<\/b><\/p>\n

\u6b32\u5728Linux\u7cfb\u7edf\u4e2d\u5bf9Z\u6587\u4ef6\u8fdb\u884c\u89e3\u538b\uff0c\u9996\u8981\u6761\u4ef6\u662f\u9700\u786e\u8ba4\u5df2\u5b89\u88c5\u9002\u5f53\u7684\u538b\u7f29\u89e3\u538b\u5de5\u5177\u3002\u5176\u4e2d\u5e38\u89c1\u7684\u89e3\u538b\u7f29\u5de5\u5177\u6709gzip\u3001gunzip\u4ee5\u53cazcat\u7b49\u7b49\u3002\u6b64\u7c7b\u5de5\u5177\u901a\u5e38\u4e0eLinux\u53d1\u884c\u7248\u96c6\u6210\uff0c\u56e0\u6b64\u5728\u5927\u90e8\u5206\u60c5\u5883\u4e0b\u65e0\u9700\u53e6\u884c\u5b89\u88c5\u4fbf\u53ef\u76f4\u63a5\u6295\u5165\u4f7f\u7528\u3002<\/p>\n

\u4f7f\u7528gzip\u89e3\u538bZ\u6587\u4ef6<\/b><\/p>\n

Gzip\u662f\u4e00\u6b3e\u5e7f\u6cdb\u5e94\u7528\u7684\u538b\u7f29\u53ca\u89e3\u538b\u7f29\u5de5\u5177\uff0c\u5176\u652f\u6301\u591a\u79cd\u538b\u7f29\u5f62\u5f0f\uff0c\u5176\u4e2d\u5305\u62ec\u4e86Z\u6587\u4ef6\u3002\u9488\u5bf9\u89e3\u538bZ\u6587\u4ef6\uff0c\u6211\u4eec\u53ef\u5229\u7528gzip\u6307\u4ee4\u53ca\u76f8\u5e94\u7684\u6587\u4ef6\u540d\u79f0\u8fdb\u884c\u64cd\u4f5c\u5e38\u7528linux\u7cfb\u7edf\uff0c\u5982\uff1a<\/p>\n

\n

bash\ngzip-dfile.txt.Z\n<\/pre>\n<\/p>\n

\u6b64\u6307\u4ee4\u5c06\u5bf9\u540d\u4e3a\"file.txt.Z\"\u7684\u538b\u7f29\u6587\u6863\u8fdb\u884c\u89e3\u538b\u7f29\uff0c\u5e76\u4f1a\u751f\u6210\u5f53\u524d\u8def\u5f84\u4e0b\u7684\u89e3\u538b\u6587\u4ef6\"file.txt\"\u3002<\/p>\n

\u4f7f\u7528gunzip\u89e3\u538bZ\u6587\u4ef6<\/b><\/p>\n

Gunzip\u4e43gzip\u7684\u7b80\u5316\u7248\uff0c\u5176\u62e5\u6709\u66f4\u7b80\u5355\u660e\u4e86\u7684\u6307\u4ee4\u884c\u754c\u9762\u3002\u5982\u6b32\u89e3\u538b\u7f29\u540e\u7f00\u540d\u4e3a\"Z\"\u7684\u6587\u4ef6\uff0c\u53ef\u76f4\u63a5\u901a\u8fc7\u6267\u884cgunzip\u547d\u4ee4<\/a>\u6765\u5b8c\u6210\u64cd\u4f5c\uff0c\u4f8b\u5982\u6b64\u7c7b\u64cd\u4f5c\uff1a<\/p>\n

gunzipfile.txt.Z<\/p>\n

\u6b64\u6307\u4ee4\u5c06\u6267\u884c\u5bf9\u6587\u4ef6\u540d\u4e3a'file.txt.Z'\u7684\u538b\u7f29\u6587\u4ef6\u8fdb\u884c\u89e3\u538b\u5904\u7406\uff0c\u5e76\u5728\u5904\u7406\u5b8c\u6210\u540e\u521b\u5efa\u51fa\u65b0\u7684'file.txt'\u6587\u4ef6\u3002<\/p>\n

\u901a\u8fc7zcat\u67e5\u770bZ\u6587\u4ef6\u5185\u5bb9<\/b><\/p>\n

\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u6216\u8bb8\u4ec5\u9700\u9605\u8bfbZ\u6587\u4ef6\u5185\u90e8\u4fe1\u606f\uff0c\u65e0\u9700\u89e3\u538b\u81f3\u786c\u76d8\u3002\u6b64\u79cd\u5883\u51b5\u4e0b\uff0c\u6211\u4eec\u53ef\u8fd0\u7528zcat\u6307\u4ee4\uff0c\u4ece\u800c\u5b9e\u73b0\u538b\u7f29\u6587\u4ef6\u7684\u5728\u7ebf\u89e3\u538b\uff0c\u907f\u514d\u4e86\u89e3\u538b\u751f\u6210\u7684\u5197\u4f59\u6587\u4ef6\u4ea7\u751f\u3002\u4f8b\u5982\uff1a<\/p>\n

zcatfile.txt.Z<\/p>\n

\u6b64\u64cd\u4f5c\u5c06\u76f4\u63a5\u5728\u7ec8\u7aef\u4e2d\u663e\u793a\u51fa'file.txt.Z'\u6587\u4ef6\u7684\u5185\u5bb9\uff0c\u65e0\u9700\u8fdb\u884c\u989d\u5916\u7684\u89e3\u538b\u7f29\u6b65\u9aa4\uff0c\u4f7f\u5f97\u5bf9\u6587\u4ef6\u4fe1\u606f\u7684\u67e5\u9605\u66f4\u52a0\u4fbf\u6377\u3002<\/p>\n

\u7ed3\u5408\u5176\u4ed6\u5de5\u5177\u89e3\u538bZ\u6587\u4ef6<\/b><\/p>\n

\u9664\u4e13\u95e8\u5904\u7406Z\u6587\u4ef6\u7684gzip\u3001gunzip\u4e0ezcat\u7b49\u5de5\u5177\u5916\uff0c\u4e5f\u53ef\u8fd0\u7528\u5176\u4ed6\u5de5\u5177\u534f\u52a9\u89e3\u538b\u5de5\u4f5c\u3002\u4f8b\u5982\uff0c\u901a\u8fc7tar\u547d\u4ee4\u5373\u53ef\u5bf9\u542bZ\u6587\u4ef6\u7684tar\u538b\u7f29\u5305\u8fdb\u884c\u89e3\u538b\uff0c\u76f8\u5e94\u6307\u4ee4\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n

tar-xzffile.tar.Z<\/p>\n

\u6b64\u6307\u4ee4\u80fd\u5bf9file.tar.Z\u538b\u7f29\u5305\u8fdb\u884c\u89e3\u538blinux mint\uff0c\u5e76\u5c06\u5176\u5185\u5bb9\u5bfc\u5165\u5f53\u524d\u8def\u5f84\u4e2d\u3002<\/p>\n

\u6ce8\u610f\u4e8b\u9879<\/b><\/p>\n

\u5728\u5904\u7406Z\u6587\u4ef6\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n

\u4fdd\u6301\u6587\u4ef6\u5b8c\u6574\u6027\uff1a\u5728\u8fdb\u884c\u89e3\u538b\u7f29\u64cd\u4f5c\u65f6\uff0c\u52a1\u5fc5\u8981\u91cd\u89c6\u6587\u4ef6\u7684\u5b8c\u6574\u6027\uff0c\u4ee5\u9632\u6b62\u4efb\u4f55\u89e3\u538b\u7f29\u9519\u8bef\u53ca\u7531\u6b64\u4ea7\u751f\u7684\u6570\u636e\u9057\u5931\u6216\u8005\u635f\u574f\u73b0\u8c61\u3002<\/p>\n

\u50a8\u5b58\u5bb9\u91cf\uff1a\u7531\u4e8eZ\u5f52\u6863\u5c06\u5360\u636e\u66f4\u5927\u7684\u786c\u76d8\u7a7a\u95f4\uff0c\u8bf7\u52a1\u5fc5\u786e\u8ba4\u6709\u5145\u8db3\u7684\u5b58\u50a8\u7a7a\u95f4\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n

\u89e3\u538b\u7f29\u8017\u65f6\uff1a\u8f83\u5927\u7684Z\u6587\u4ef6\u9700\u8981\u8f83\u957f\u65f6\u95f4\u8fdb\u884c\u89e3\u538b\uff0c\u8bf7\u8010\u5fc3\u7b49\u5019\u64cd\u4f5c\u5b8c\u6210\u3002<\/p>\n

\u7ecf\u8fc7\u4e0a\u8ff0\u5185\u5bb9\u9610\u8ff0\uff0c\u6211\u4eec\u6df1\u4fe1\u60a8\u5bf9\u4e8eLinux\u73af\u5883\u4e0b\u5904\u7406Z\u683c\u5f0f\u6587\u6863\u7684\u7406\u89e3\u66f4\u4e3a\u6df1\u523b\uff0c\u5e76\u4e14\u80fd\u591f\u7075\u6d3b\u4f7f\u7528\u5404\u7c7b\u89e3\u538b\u7f29\u5de5\u5177\u8fdb\u884c\u6b64\u7c7b\u538b\u7f29\u6587\u4ef6\u7684\u64cd\u4f5c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5728linux\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c\u89e3\u538b\u538b\u7f29\u6587\u4ef6\u4e43\u65e5\u5e38\u4efb\u52a1\u4e4b\u4e00\u3002\u5173\u4e8eZ\u6587\u4ef6\u89e3\u538b\u65b9\u5f0f\u53ca\u6240\u9700\u5de5\u5177\uff0c\u672c\u6587\u5c06\u8be6\u7ec6\u89e3\u8bfb\uff0c\u5305\u62ec\u6280\u672f\u8981\u70b9\u4e0e\u4f7f\u7528\u987b\u77e5\uff0c\u65e8\u5728\u63d0\u9ad8\u8bfb\u8005\u5bf9\u8be5\u7c7b\u538b\u7f29\u6587\u4ef6\u7684\u5904\u7406\u6548\u7387\u3002\u56e0\u6b64\uff0c\u5728\u5904\u7406Z\u6587\u4ef6\u65f6\uff0c\u9700\u501f\u52a9\u4e13\u7528\u5de5\u5177\u53ca\u65b9\u6cd5\u8fdb\u884c\u89e3\u538b\u64cd\u4f5c\u3002\u7ed3\u5408\u5176\u4ed6\u5de5\u5177\u89e3\u538bZ\u6587\u4ef6<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-291117","post","type-post","status-publish","format-standard","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/291117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=291117"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/291117\/revisions"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=291117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=291117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=291117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}