{"id":439,"date":"2012-02-16T23:17:49","date_gmt":"2012-02-16T15:17:49","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=439"},"modified":"2012-02-16T23:28:00","modified_gmt":"2012-02-16T15:28:00","slug":"linux%e4%b8%8btar%e5%91%bd%e4%bb%a4%e6%80%8e%e4%b9%88%e8%a7%a3%e5%8e%8b%e7%bc%a9%e5%92%8c%e5%8e%8b%e7%bc%a9%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/439","title":{"rendered":"linux\u4e0btar\u547d\u4ee4\u600e\u4e48\u89e3\u538b\u7f29\u548c\u538b\u7f29\u6587\u4ef6"},"content":{"rendered":"
\u8fd9\u4e2a\u547d\u4ee4\u603b\u662f\u5076\u5c14\u7528\u4e00\u4e0b\uff0c\u603b\u5fd8\uff0c\u5fd8\u4e86\u5c31\u5f97\u767e\u5ea6\uff0c\u633a\u9ebb\u70e6\u3002\u4eca\u5929\u5199\u5230\u535a\u5ba2\u4e0a\u6765\uff0c\u4ee5\u540e\u627e\u8fd9\u4e2a\u547d\u4ee4\u5c31\u6765\u8fd9\u513f\u4e86\u3002<\/p>\n
\u6211\u4e00\u822c\u662f\u7528\u8fd9\u4e2a\u547d\u4ee4\uff0c\u8fdb\u5165\u5230\u60f3\u8981\u538b\u7f29\u7684\u6587\u4ef6\u5939\u91cc\u7528\u8fd9\u4e2a\u547d\u4ee4\uff1a<\/p>\n
tar czvf name.tar.gz *<\/p>\n
\u89e3\u538b\u5c31\u662f\u8fd9\u4e2a\u547d\u4ee4\uff0c\u8981\u5148\u8fdb\u5165\u90a3\u4e2a\u6587\u4ef6\u5939\uff1a<\/p>\n
tar zxvf name.tar.gz<\/p>\n
\u538b\u7f29\u4e00\u4e2a\u6587\u4ef6\uff1atar czvf aa.tar.gz aa
\n\u89e3\u538b\u7f29\u6587\u4ef6\uff1atar zxvf aa.tar.gz<\/p>\n
\u547d\u4ee4\uff1a tar<\/p>\n
\u683c\u5f0f\uff1a tar \u9009\u9879 \u6587\u4ef6\u76ee\u5f55\u5217\u8868
\n\u529f\u80fd\uff1a \u5bf9\u6587\u4ef6\u76ee\u5f55\u8fdb\u884c\u6253\u5305\u5907\u4efd <\/p>\n
\u9009\u9879\uff1a<\/p>\n
-c \u5efa\u7acb\u65b0\u7684\u5f52\u6863\u6587\u4ef6
\n-r \u5411\u5f52\u6863\u6587\u4ef6\u672b\u5c3e\u8ffd\u52a0\u6587\u4ef6
\n-x \u4ece\u5f52\u6863\u6587\u4ef6\u4e2d\u89e3\u51fa\u6587\u4ef6
\n-O \u5c06\u6587\u4ef6\u89e3\u5f00\u5230\u6807\u51c6\u8f93\u51fa
\n-v \u5904\u7406\u8fc7\u7a0b\u4e2d\u8f93\u51fa\u76f8\u5173\u4fe1\u606f
\n-f \u5bf9\u666e\u901a\u6587\u4ef6\u64cd\u4f5c
\n-z \u8c03\u7528gzip\u6765\u538b\u7f29\u5f52\u6863\u6587\u4ef6\uff0c\u4e0e-x\u8054\u7528\u65f6\u8c03\u7528gzip\u5b8c\u6210\u89e3\u538b\u7f29
\n-Z \u8c03\u7528compress\u6765\u538b\u7f29\u5f52\u6863\u6587\u4ef6\uff0c\u4e0e-x\u8054\u7528\u65f6\u8c03\u7528compress\u5b8c\u6210\u89e3\u538b\u7f29<\/p>\n
\u5b9e\u4f8b1\uff1a \u76ee\u7684\uff1a\u7528tar\u6253\u5305\u4e00\u4e2a\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6
\n\u547d\u4ee4\uff1a#tar -cvf \/mnt\/lgx\/a1.doc
\n\u7ed3\u679c\uff1a\u4ea7\u751f\u4e00\u4e2a\u4ee5.tar\u4e3a\u6269\u5c55\u540d\u7684\u6253\u5305\u6587\u4ef6<\/p>\n
\u5b9e\u4f8b2\uff1a \u76ee\u7684\uff1a\u7528tar\u89e3\u5f00\u6253\u5305\u6587\u4ef6
\n\u547d\u4ee4\uff1a#tar -xvf \/mnt\/lgx\/a1.doc.tar
\n\u9644\u52a0\u8bf4\u660e\uff1a\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0ctar\u6253\u5305\u4e0egzip\uff08\u538b\u7f29\uff09\u7ecf\u5e38\u8054\u5408\u4f7f\u7528\uff0c\u6548\u679c\u66f4\u597d\u3002\u65b9\u6cd5\u662f\uff1a
\n\u9996\u5148\u7528tar\u6253\u5305\uff0c\u5982\uff1a\uff03tar -cvf \/mnt\/lgx\/a1.doc \uff08\u4ea7\u751fa1.doc.tar\u6587\u4ef6\uff09
\n\u7136\u540e\u7528gzip\u538b\u7f29a1.doc.tar\u6587\u4ef6\uff0c\u5982\uff1a\uff03gzip \/mnt\/lgx\/a1.doc.tar \uff08\u4ea7\u751fa1.doc.tar.gz\u6587\u4ef6\uff09<\/p>\n
\u5b9e\u4f8b3\uff1a \u76ee\u7684\uff1a\u89e3\u538ba1.doc.tar.gz\u6587\u4ef6
\n\u65b9\u6cd51\uff1a
\n#gzip -dc \/mnt\/lgx\/a1.doc.tar.gz \uff08\u4ea7\u751fa1.doc.tar\u6587\u4ef6\uff09
\n#tar -xvf \/mnt\/lgx\/a1.doc.tar \uff08\u4ea7\u751fa1.doc\u6587\u4ef6\uff09
\n\u8fd9\u4e24\u6b21\u547d\u4ee4\u4e5f\u53ef\u4f7f\u7528\u7ba1\u9053\u529f\u80fd\uff0c\u628a\u4e24\u4e2a\u547d\u4ee4\u5408\u4e8c\u4e3a\u4e00\uff1a
\n#gzip -dc \/mnt\/lgx\/a1.doc.tar.gz | tar -xvf
\n\u65b9\u6cd52\uff1a\u4f7f\u7528tar\u63d0\u4f9b\u7684\u81ea\u52a8\u8c03\u7528gzip\u89e3\u538b\u7f29\u529f\u80fd
\n#tar -xzvf \/mnt\/lgx\/a1.doc.tar.gz<\/p>\n","protected":false},"excerpt":{"rendered":"
\u8fd9\u4e2a\u547d\u4ee4\u603b\u662f\u5076\u5c14\u7528\u4e00\u4e0b\uff0c\u603b\u5fd8\uff0c\u5fd8\u4e86\u5c31\u5f97\u767e\u5ea6\uff0c\u633a\u9ebb\u70e6\u3002\u4eca\u5929\u5199\u5230\u535a\u5ba2\u4e0a\u6765\uff0c\u4ee5\u540e\u627e\u8fd9\u4e2a\u547d\u4ee4\u5c31\u6765\u8fd9\u513f\u4e86\u3002 \u6211\u4e00\u822c\u662f\u7528\u8fd9\u4e2a\u547d\u4ee4\uff0c\u8fdb\u5165\u5230\u60f3\u8981\u538b\u7f29\u7684\u6587\u4ef6\u5939\u91cc\u7528\u8fd9\u4e2a\u547d\u4ee4\uff1a tar czvf name.tar.gz * \u89e3\u538b\u5c31\u662f\u8fd9\u4e2a\u547d\u4ee4\uff0c\u8981\u5148\u8fdb\u5165\u90a3\u4e2a\u6587\u4ef6\u5939\uff1a tar zxvf name.tar.gz \u538b\u7f29\u4e00\u4e2a\u6587\u4ef6\uff1atar czvf aa.tar.gz aa \u89e3\u538b\u7f29\u6587\u4ef6\uff1atar zxvf aa.tar.gz \u547d\u4ee4\uff1a tar \u683c\u5f0f\uff1a tar \u9009\u9879 \u6587\u4ef6\u76ee\u5f55\u5217\u8868 \u529f\u80fd\uff1a \u5bf9\u6587\u4ef6\u76ee\u5f55\u8fdb\u884c\u6253\u5305\u5907\u4efd<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,9],"tags":[64],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/439"}],"collection":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/comments?post=439"}],"version-history":[{"count":4,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/439\/revisions"}],"predecessor-version":[{"id":441,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/439\/revisions\/441"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=439"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}