{"id":1281,"date":"2022-06-12T10:09:22","date_gmt":"2022-06-12T02:09:22","guid":{"rendered":"https:\/\/sanlangcode.com\/?p=1281"},"modified":"2022-06-12T10:09:22","modified_gmt":"2022-06-12T02:09:22","slug":"linux%e5%af%b9%e4%b8%8d%e5%90%8c%e6%96%87%e4%bb%b6%e7%9a%84%e8%a7%a3%e5%8e%8b%e5%8c%85%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/sanlangcode.com\/index.php\/2022\/06\/12\/linux%e5%af%b9%e4%b8%8d%e5%90%8c%e6%96%87%e4%bb%b6%e7%9a%84%e8%a7%a3%e5%8e%8b%e5%8c%85%e5%91%bd%e4%bb%a4\/","title":{"rendered":"Linux\u5bf9\u4e0d\u540c\u6587\u4ef6\u7684\u89e3\u538b\u5305\u547d\u4ee4"},"content":{"rendered":"\n<p><strong>1\uff0e\u547d\u4ee4\u683c\u5f0f\uff1a<\/strong><br>tar[\u5fc5\u8981\u53c2\u6570][\u9009\u62e9\u53c2\u6570][\u6587\u4ef6]<\/p>\n\n\n\n<p><br><strong>2\uff0e\u547d\u4ee4\u529f\u80fd\uff1a<\/strong><br>\u7528\u6765\u538b\u7f29\u548c\u89e3\u538b\u6587\u4ef6\u3002tar\u672c\u8eab\u4e0d\u5177\u6709\u538b\u7f29\u529f\u80fd\u3002\u4ed6\u662f\u8c03\u7528\u538b\u7f29\u529f\u80fd\u5b9e\u73b0\u7684<\/p>\n\n\n\n<p><br><strong>3\uff0e\u547d\u4ee4\u53c2\u6570\uff1a<\/strong><br>\u5fc5\u8981\u53c2\u6570\u6709\u5982\u4e0b\uff1a<br>-A \u65b0\u589e\u538b\u7f29\u6587\u4ef6\u5230\u5df2\u5b58\u5728\u7684\u538b\u7f29<br>-B \u8bbe\u7f6e\u533a\u5757\u5927\u5c0f<br>-c \u5efa\u7acb\u65b0\u7684\u538b\u7f29\u6587\u4ef6<br>-d \u8bb0\u5f55\u6587\u4ef6\u7684\u5dee\u522b<br>-r \u6dfb\u52a0\u6587\u4ef6\u5230\u5df2\u7ecf\u538b\u7f29\u7684\u6587\u4ef6<br>-u \u6dfb\u52a0\u6539\u53d8\u4e86\u548c\u73b0\u6709\u7684\u6587\u4ef6\u5230\u5df2\u7ecf\u5b58\u5728\u7684\u538b\u7f29\u6587\u4ef6<br>-x \u4ece\u538b\u7f29\u7684\u6587\u4ef6\u4e2d\u63d0\u53d6\u6587\u4ef6<br>-t \u663e\u793a\u538b\u7f29\u6587\u4ef6\u7684\u5185\u5bb9<br>-z \u652f\u6301gzip\u89e3\u538b\u6587\u4ef6<br>-j \u652f\u6301bzip2\u89e3\u538b\u6587\u4ef6<br>-Z \u652f\u6301compress\u89e3\u538b\u6587\u4ef6<br>-v \u663e\u793a\u64cd\u4f5c\u8fc7\u7a0b<br>-l \u6587\u4ef6\u7cfb\u7edf\u8fb9\u754c\u8bbe\u7f6e<br>-k \u4fdd\u7559\u539f\u6709\u6587\u4ef6\u4e0d\u8986\u76d6<br>-m \u4fdd\u7559\u6587\u4ef6\u4e0d\u88ab\u8986\u76d6<br>-W \u786e\u8ba4\u538b\u7f29\u6587\u4ef6\u7684\u6b63\u786e\u6027<br>\u53ef\u9009\u53c2\u6570\u5982\u4e0b\uff1a<br>-b \u8bbe\u7f6e\u533a\u5757\u6570\u76ee<br>-C \u5207\u6362\u5230\u6307\u5b9a\u76ee\u5f55<br>-f \u6307\u5b9a\u538b\u7f29\u6587\u4ef6<br>&#8211;help \u663e\u793a\u5e2e\u52a9\u4fe1\u606f<br>&#8211;version \u663e\u793a\u7248\u672c\u4fe1\u606f<\/p>\n\n\n\n<p><br><strong>4\uff0e\u5e38\u89c1\u89e3\u538b\/\u538b\u7f29\u547d\u4ee4<\/strong><br>tar<br>\u89e3\u5305\uff1atar xvf FileName.tar<br>\u6253\u5305\uff1atar cvf FileName.tar DirName<br>\uff08\u6ce8\uff1atar\u662f\u6253\u5305\uff0c\u4e0d\u662f\u538b\u7f29\uff01\uff09<\/p>\n\n\n\n<p>.gz<br>\u89e3\u538b1\uff1agunzip FileName.gz<br>\u89e3\u538b2\uff1agzip -d FileName.gz<br>\u538b\u7f29\uff1agzip FileName<br>.tar.gz \u548c .tgz<br>\u89e3\u538b\uff1atar zxvf FileName.tar.gz<br>\u538b\u7f29\uff1atar zcvf FileName.tar.gz DirName<\/p>\n\n\n\n<p>.bz2<br>\u89e3\u538b1\uff1abzip2 -d FileName.bz2<br>\u89e3\u538b2\uff1abunzip2 FileName.bz2<br>\u538b\u7f29\uff1a bzip2 -z FileName<br>.tar.bz2<br>\u89e3\u538b\uff1atar jxvf FileName.tar.bz2<br>\u538b\u7f29\uff1atar jcvf FileName.tar.bz2 DirName<\/p>\n\n\n\n<p>.bz<br>\u89e3\u538b1\uff1abzip2 -d FileName.bz<br>\u89e3\u538b2\uff1abunzip2 FileName.bz<br>\u538b\u7f29\uff1a\u672a\u77e5<br>.tar.bz<br>\u89e3\u538b\uff1atar jxvf FileName.tar.bz<br>\u538b\u7f29\uff1a\u672a\u77e5<\/p>\n\n\n\n<p>.Z<br>\u89e3\u538b\uff1auncompress FileName.Z<br>\u538b\u7f29\uff1acompress FileName<br>.tar.Z<br>\u89e3\u538b\uff1atar Zxvf FileName.tar.Z<br>\u538b\u7f29\uff1atar Zcvf FileName.tar.Z DirName<br>.zip<br>\u89e3\u538b\uff1aunzip FileName.zip<br>\u538b\u7f29\uff1azip FileName.zip DirName<\/p>\n\n\n\n<p>.rar<br>\u89e3\u538b\uff1arar x FileName.rar<br>\u538b\u7f29\uff1arar a FileName.rar DirName<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\uff0e\u547d\u4ee4\u683c\u5f0f\uff1atar[\u5fc5\u8981\u53c2\u6570]&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":195,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-1281","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/1281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/comments?post=1281"}],"version-history":[{"count":0,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/1281\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/media\/195"}],"wp:attachment":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/media?parent=1281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/categories?post=1281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/tags?post=1281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}