{"id":289874,"date":"2024-02-07T21:20:15","date_gmt":"2024-02-07T13:20:15","guid":{"rendered":"https:\/\/lrxjmw.cn\/lxtjytwjqscz.html"},"modified":"2024-02-07T21:20:15","modified_gmt":"2024-02-07T13:20:15","slug":"lxtjytwjqscz","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lxtjytwjqscz.html","title":{"rendered":"Linux\u7cfb\u7edf\u89e3\u538b.tgz\u6587\u4ef6\uff0c\u8f7b\u677e\u64cd\u4f5c\u65b9\u6cd5\u5927\u63ed\u79d8"},"content":{"rendered":"

\u5173\u4e8eLinux<\/a>\u7cfb\u7edf<\/a>\u4e2d\u7684\u6587\u4ef6\u538b\u7f29\u683c\u5f0f\uff0c\u5927\u90e8\u5206\u4eba\u504f\u7231\u91c7\u7528\u4ee5'.tar'\u548c'.gz'\u4e24\u79cd\u6269\u5c55\u540d\u7ed3\u5c3e\u7684\u5f62\u5f0f\u3002\u5982\u679c\u60a8\u60f3\u5bf9\u8fd9\u7c7b\u6587\u4ef6\u8fdb\u884c\u9002\u5f53\u7684\u89e3\u538b\u5904\u7406\u5728linux\u4e2d\u5982\u4f55\u89e3\u538b.tgz<\/strong>\uff0c\u6211\u4eec\u8fd9\u91cc\u63d0\u4f9b\u51e0\u4e2a\u7b80\u5355\u800c\u4fbf\u6377\u7684\u89e3\u51b3\u65b9\u6848\u4f9b\u60a8\u53c2\u8003\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u4f1a\u5177\u4f53\u4ecb\u7ecd\u5728Linux\u7cfb\u7edf\u4e0b\u600e\u6837\u4f18\u96c5\u5730\u5f00\u5c55\u8fd9\u4e9b\u5e26\u6709.tgz\u540e\u7f00\u6587\u4ef6\u7684\u8d44\u6e90\u6269\u5c55\u5de5\u4f5c\u3002<\/p>\n

1.\u4f7f\u7528tar\u547d\u4ee4<\/a>\u89e3\u538b<\/b><\/p>\n

\u5c0a\u656c\u7684\u7528\u6237\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u5730\u4f7f\u7528tar\u547d\u4ee4\u6765\u89e3\u538b.tgz\u683c\u5f0f\u7684\u538b\u7f29\u6587\u6863\u3002\u53ea\u9700\u5728\u7ec8\u7aef\u952e\u5165\u76f8\u5173\u6307\u4ee4\uff0c\u6309\u7167\u63d0\u793a\u8fdb\u884c\u64cd\u4f5c\uff0c\u4fbf\u80fd\u5706\u6ee1\u5b8c\u6210\u6574\u4e2a\u8fc7\u7a0b\u3002<\/p>\n

```<\/p>\n

tar -xvzf filename.tgz<\/p>\n

\"\u8bf7\u6ce8\u610f\uff0c\u540d\u4e3a‘filename’\u7684\u538b\u7f29\u6587\u4ef6\u5c06\u5728\u60a8\u6240\u5728\u7684\u8def\u5f84\u4e0b\u65b9\u5c55\u5f00\u653e\u5927linux\u64cd\u4f5c\u7cfb\u7edf\u8bba\u6587\uff0c\u786e\u8ba4\u4f4d\u7f6e\u6b63\u786e\u5373\u53ef\u3002\"<\/p>\n

2.\u89e3\u538b\u5230\u6307\u5b9a\u76ee\u5f55<\/b><\/p>\n

\u5982\u679c\u4f60\u5e0c\u671b\u5c06\u6587\u4ef6\u89e3\u538b\u5230\u6307\u5b9a\u7684\u76ee\u5f55\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

\u4e3a\u65b9\u4fbf\u5927\u5bb6\u8f7b\u677e\u5b8c\u6210\u6587\u4ef6\u7684\u89e3\u538b\u548c\u8fc1\u79fb\u4efb\u52a1\uff0c\u8fd9\u91cc\u6709\u4e00\u4e2a\u7b80\u6613\u65b9\u6cd5\u4f9b\u60a8\u53c2\u8003\uff1a\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\uff08\u8f93\u5165\"tar\"-\"xvzf\"-\"\u6587\u4ef6\u540d\u79f0.tgz\"-\"-C\"\u4ee5\u53ca\"\/\u8def\u5f84\/\u81f3\/\u76ee\u5f55\"\uff09\u64cd\u4f5clinux vps\uff0c\u9759\u5f85\u7ed3\u679c\u51fa\u73b0\u5427\uff01<\/p>\n

\u8fd9\u6837\uff0c\u6587\u4ef6\u5c31\u4f1a\u88ab\u89e3\u538b\u5230\u6307\u5b9a\u7684\u76ee\u5f55\u4e0b\u3002<\/p>\n

3.\u67e5\u770b\u538b\u7f29\u5305\u5185\u7684\u6587\u4ef6\u5217\u8868<\/b><\/p>\n

\u82e5\u60a8\u5e0c\u671b\u4e86\u89e3.tgz\u6587\u4ef6\u4e2d\u7684\u6587\u4ef6\u7c7b\u578b\uff0c\u8bf7\u5c1d\u8bd5\u4ee5\u4e0b\u64cd\u4f5c\uff1a<\/p>\n

tar -tzf filename.tgz<\/p>\n

\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u5217\u51fa\u538b\u7f29\u5305\u5185\u7684\u6240\u6709\u6587\u4ef6\u548c\u76ee\u5f55\u3002<\/p>\n

4.\u4f7f\u7528\u56fe\u5f62\u5316\u5de5\u5177<\/b><\/p>\n

\u82e5\u60a8\u4e0d\u592a\u64c5\u957f\u547d\u4ee4\u884c\u64cd\u4f5c\u5728linux\u4e2d\u5982\u4f55\u89e3\u538b.tgz<\/strong>\uff0c\u5efa\u8bae\u60a8\u8bd5\u7528\u56fe\u5f62\u5316\u5de5\u5177\u89e3\u538b.tgz\u6587\u4ef6\uff0c\u5982File Roller\u53caArk\u7b49\u5f3a\u5927\u7684Linux\u56fe\u5f62\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n

5.\u89e3\u538b\u5176\u4ed6\u7c7b\u578b\u7684\u538b\u7f29\u6587\u4ef6<\/b><\/p>\n

\u8fd9\u6b3e\u8f7b\u4fbf\u6613\u7528\u7684Tar\u5de5\u5177\u80fd\u89e3\u6790\u5404\u7c7b\u5e38\u7528\u538b\u7f29\u6863\uff0c\u5305\u62ec.tar\u4e0e.gz\uff0c\u751a\u81f3\u662f.bz2\u7b49\u683c\u5f0f\u6587\u4ef6\u3002\u53ea\u9700\u7b80\u5355\u9009\u62e9\u6240\u9700\u529f\u80fd\uff0c\u5373\u53ef\u6d41\u7545\u4f7f\u7528\u54e6\uff01<\/p>\n

6.\u538b\u7f29\u6587\u4ef6\u5939\u4e3a.tgz\u683c\u5f0f<\/b><\/p>\n

\u5982\u679c\u4f60\u60f3\u5c06\u4e00\u4e2a\u6587\u4ef6\u5939\u538b\u7f29\u6210.tgz\u683c\u5f0f\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

\u5c0a\u656c\u7684\u7528\u6237\uff0c\u53ea\u9700\u8981\u8f93\u5165\u201ctar -cvzf filename.tgz foldername\u201d\u8fd9\u4e2a\u6307\u4ee4\u5c31\u80fd\u5feb\u901f\u5c06\u6307\u5b9a\u7684\u6587\u4ef6\u5939\u6253\u5305\u538b\u7f29\u4e86\u54e6\uff01<\/p>\n

\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u5c06\u6307\u5b9a\u7684\u6587\u4ef6\u5939\u538b\u7f29\u6210.tgz\u683c\u5f0f\u7684\u6587\u4ef6\u3002<\/p>\n

7.\u89e3\u538b\u5230\u6307\u5b9a\u76ee\u5f55\u5e76\u91cd\u547d\u540d<\/b><\/p>\n

\u8bf7\u60a8\u4f9d\u7167\u4e0b\u5217\u6b65\u9aa4\u6765\u63d0\u53d6\u538b\u7f29\u6587\u4ef6\u4e2d\u7684\u6587\u6863\uff0c\u5e76\u5c06\u5176\u4fdd\u5b58\u5728\u6307\u5b9a\u8def\u5f84\u5e76\u91cd\u65b0\u547d\u540d\u5462\uff01<\/p>\n

\u4e3a\u4e86\u8ba9\u60a8\u66f4\u4fbf\u6377\u5730\u8fdb\u884c\u6587\u4ef6\u4fee\u6539\uff0c\u6211\u4eec\u63d0\u4f9b\u4e86tar -xvzf filename.tgz -C directory --transform s\/old\/new\u8fd9\u4e2a\u7b80\u5316\u7248\u7684\u6307\u4ee4\u4f9b\u60a8\u53c2\u8003\u3002<\/p>\n

\u6b64\u6307\u4ee4\u65e8\u5728\u5e2e\u52a9\u9601\u4e0b\u8f7b\u677e\u5730\u628a\u538b\u7f29\u6587\u4ef6\u89e3\u538b\u81f3\u6307\u5b9a\u76ee\u5f55\u5e76\u547d\u540d\u4e3a\u201cnewname\u201d\u3002<\/p>\n

8.\u89e3\u538b\u90e8\u5206\u6587\u4ef6<\/b><\/p>\n

\u5982\u679c\u4f60\u53ea\u60f3\u89e3\u538b.tgz\u6587\u4ef6\u4e2d\u7684\u90e8\u5206\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

\u8bf7\u4f7f\u7528 Tar \u547d\u4ee4\u4e2d\u7684-xvzf \u53c2\u6570\u89e3\u538b\u7f29\u540d\u4e3a\u201cfilename.tgz\u201d\u7684\u538b\u7f29\u5305\uff0c\u5176\u4e2d\u5305\u62ec\u6587\u4ef61\u548c\u6587\u4ef62\u3002<\/p>\n

\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u5c06\u6307\u5b9a\u7684\u6587\u4ef6\u4ece.tgz\u6587\u4ef6\u4e2d\u89e3\u538b\u51fa\u6765\u3002<\/p>\n

9.\u6dfb\u52a0\u8fdb\u5ea6\u6761\u663e\u793a<\/b><\/p>\n

\u82e5\u4f60\u5e0c\u671b\u67e5\u770b\u89e3\u538b\u7f29\u8fdb\u5ea6\uff0c\u6211\u4eec\u5efa\u8bae\u4f7f\u7528pv\u5de5\u5177\u3002\u5b89\u88c5\u597d\u6b64\u8f6f\u4ef6\u540e\uff0c\u53ea\u9700\u8fd0\u884c\u5982\u4e0b\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n

pv filename.tgz | tar -xz<\/p>\n

\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u663e\u793a\u89e3\u538b\u8fdb\u5ea6\uff0c\u5e76\u5c06\u6587\u4ef6\u89e3\u538b\u5230\u5f53\u524d\u76ee\u5f55\u4e0b\u3002<\/p>\n

10.\u89e3\u538b\u9690\u85cf\u6587\u4ef6<\/b><\/p>\n

\u82e5\u9700\u5728\u89e3\u5f00.tgz\u538b\u7f29\u5305\u7684\u540c\u65f6\u66b4\u9732\u9690\u85cf\u6587\u4ef6\uff0c\u6211\u4eec\u4e3a\u60a8\u63d0\u4f9b\u5982\u4e0b\u4fbf\u6377\u65b9\u6cd5\uff1a<\/p>\n

\u5c0a\u656c\u7684\u7528\u6237\uff0c\u6309\u5982\u4e0b\u6b65\u9aa4\u4fbf\u53ef\u8f7b\u677e\u63d0\u53d6\u5f52\u6863\u6587\u4ef6\uff1a\u9996\u5148\uff0c\u4f7f\u7528\u81ea\u5e26\u7684tar\u547d\u4ee4\uff0c\u53ea\u9700\u5c06\u683c\u5f0f\u4fee\u6539\u4e3a\"tar -xvzf filename.tgz --include=\".*\"\"\u5c31\u80fd\u5b9e\u73b0\u4e86\u54e6\u3002<\/p>\n

\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u5c06\u6240\u6709\u9690\u85cf\u6587\u4ef6\u89e3\u538b\u51fa\u6765\u3002<\/p>\n

\u5728\u6b64\uff0c\u6211\u4eec\u5b66\u4e60\u4e86\u5982\u4f55\u5728Linux\u73af\u5883\u4e0b\u9ad8\u6548\u7ba1\u7406.tgz\u7684\u538b\u7f29\u5305\u3002\u65e0\u8bba\u60a8\u9009\u62e9\u952e\u76d8\u8f93\u5165\u6307\u4ee4\u8fd8\u662f\u9f20\u6807\u70b9\u51fb\u64cd\u4f5c\uff0c\u64cd\u4f5c\u8fc7\u7a0b\u5c06\u53d8\u5f97\u5341\u5206\u6d41\u7545\u81ea\u7136\u3002\u5e0c\u671b\u8fd9\u4e9b\u5c0f\u6280\u5de7\u53ef\u4ee5\u5e2e\u52a9\u5230\u5927\u5bb6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5c0a\u656c\u7684\u7528\u6237\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u5730\u4f7f\u7528tar\u547d\u4ee4\u6765\u89e3\u538b.\u4e3a\u65b9\u4fbf\u5927\u5bb6\u8f7b\u677e\u5b8c\u6210\u6587\u4ef6\u7684\u89e3\u538b\u548c\u8fc1\u79fb\u4efb\u52a1\uff0c\u8fd9\u91cc\u6709\u4e00\u4e2a\u7b80\u6613\u65b9\u6cd5\u4f9b\u60a8\u53c2\u8003\uff1a\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\uff08\u8f93\u5165tar-xvzf-\u6587\u4ef6\u540d\u79f0.tgz\u6587\u4ef6\u4e2d\u7684\u6587\u4ef6\u7c7b\u578b\uff0c\u8bf7\u5c1d\u8bd5\u4ee5\u4e0b\u64cd\u4f5c\uff1atgz\u538b\u7f29\u5305\u7684\u540c\u65f6\u66b4\u9732\u9690\u85cf\u6587\u4ef6\uff0c\u6211\u4eec\u4e3a\u60a8\u63d0\u4f9b\u5982\u4e0b\u4fbf\u6377\u65b9\u6cd5\uff1a<\/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-289874","post","type-post","status-publish","format-standard","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/289874","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=289874"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/289874\/revisions"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=289874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=289874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=289874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}