{"id":15739,"date":"2023-08-23T04:05:53","date_gmt":"2023-08-22T20:05:53","guid":{"rendered":"https:\/\/www.linuxcool.com\/lzcyddbysjys"},"modified":"2023-08-23T04:05:53","modified_gmt":"2023-08-22T20:05:53","slug":"lzcyddbysjys","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/lzcyddbysjys","title":{"rendered":"Linux\u4e2d\u5e38\u7528\u7684\u6253\u5305\u3001\u538b\u7f29\u3001\u52a0\u538b\u7f29\u4e0e\u89e3\u538b\u7f29\u53c2\u6570"},"content":{"rendered":"<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>tar\u662f<a style='color:#0000CC;font-size:16px' href='https:\/\/www.linuxprobe.com\/' target='_blank' rel=\"noopener\">Linux<\/a>\u4e2d\u5e38\u7528\u7684\u6253\u5305\u3001\u538b\u7f29\u3001\u52a0\u538b\u7f29\u5de5\u5177\uff0ctar\u7684\u53c2\u6570\u597d\u591alinux\u7cfb\u7edf\u4e0b\u8f7d\uff0c\u8fd9\u513f\u4ec5\u4ec5\u5217\u51fa\u5e38\u7528\u7684\u538b\u7f29\u4e0e\u89e3\u538b\u7f29\u53c2\u6570\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>tar\u7684\u53c2\u6570\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2023\/08\/1692734752652_0.jpg' alt='linux\u547d\u4ee4\u884c\u538b\u7f29\u6587\u4ef6_linux\u538b\u7f29\u5305\u547d\u4ee4_linux\u538b\u7f29\u5e38\u7528\u547d\u4ee4' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>1.\u6587\u4ef6\u6253\u5305<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5c06\u6574\u4e2a\/home\/www\/images\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u5168\u90e8\u6253\u5305\u4e3a\/home\/www\/images.tar<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2023\/08\/1692734752652_1.png' alt='linux\u538b\u7f29\u5e38\u7528\u547d\u4ee4_linux\u547d\u4ee4\u884c\u538b\u7f29\u6587\u4ef6_linux\u538b\u7f29\u5305\u547d\u4ee4' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre><code class=\"language-bash\">\u00a0tar -cvf \/home\/www\/images.tar \/home\/www\/images  # \u4ec5\u6253\u5305\uff0c\u4e0d\u538b\u7f29\n\u00a0tar -zcvf \/home\/www\/images.tar.gz \/home\/www\/images  # \u6253\u5305\u540e\uff0c\u4ee5gzip\u538b\u7f29<\/code><\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4e5f\u53ef\u4ee5\u76f4\u63a5\u5148\u6b65\u5165\u8981\u6253\u5305\u7684\u6587\u4ef6\u5939\u76ee\u5f55\uff0c\u5c06\u5f53\u524d\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u8fdb\u884c\u6253\u5305\uff0c\u6837\u4f8b\u5982\u4e0b\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2023\/08\/1692734752652_2.png' alt='linux\u538b\u7f29\u5305\u547d\u4ee4_linux\u538b\u7f29\u5e38\u7528\u547d\u4ee4_linux\u547d\u4ee4\u884c\u538b\u7f29\u6587\u4ef6' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre><code> cd \/home\/www\/images  # \u8fdb\u5165\/home\/www\/images\u76ee\u5f55\n tar -cvf images.tar .\/  # \u5c06\u5f53\u524d\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u6253\u5305\u4e3aimages.tar<\/code><\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5728\u53c2\u6570f\u65c1\u8fb9\u7684\u538b\u7f29\u6587\u4ef6\u540d\u662f\u81ea\u5df1\u53d6\u7684<strong>linux\u538b\u7f29\u5305<a style='color:#0000CC;font-size:16px' href='https:\/\/www.linuxcool.com\/' target='_blank' rel=\"noopener\">\u547d\u4ee4<\/a><\/strong>\uff0c\u540e\u7f00\u540d\u4e60\u60ef\u4e0a\u7528.tar<strong>linux\u538b\u7f29\u5305\u547d\u4ee4<\/strong>\uff0c\u5018\u82e5\u52a0z\u53c2\u6570linux \u5185\u6838\uff0c\u5219\u4ee5tar.gz\u6216tgz\u6765\u4ee3\u8868gzip\u538b\u7f29\u8fc7\u7684tarfile\u6587\u4ef6\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2023\/08\/1692734752652_3.png' alt='linux\u538b\u7f29\u5305\u547d\u4ee4_linux\u538b\u7f29\u5e38\u7528\u547d\u4ee4_linux\u547d\u4ee4\u884c\u538b\u7f29\u6587\u4ef6' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>2.\u6587\u4ef6\u89e3\u538b<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5c06tgz\u6587\u4ef6\u89e3\u538b\u5230\u6307\u5b9a\u76ee\u5f55<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre><code class=\"language-bash\">tar zxvf test.tgz\u00a0-C\u00a0\u6307\u5b9a\u76ee\u5f55<\/code><\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4f8b\u5982\u5c06\/kernel.tgz\u89e3\u538b\u5230\/linux-2.6.29\u76ee\u5f55<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre><code class=\"language-bash\">tar\u00a0zxvf \/kernel.tgz -C\u00a0\/linux-2.6.29<\/code><\/pre><\/p>\n","protected":false},"excerpt":{"rendered":"<p>tar\u662fLinux\u4e2d\u5e38\u7528\u7684\u6253\u5305\u3001\u538b\u7f29\u3001\u52a0\u538b\u7f29\u5de5\u5177\uff0ctar\u7684\u53c2\u6570\u5f88\u591a\uff0c\u8fd9\u91cc\u4ec5\u4ec5\u5217\u4e3e\u5e38\u7528\u7684\u538b\u7f29\u4e0e\u89e3\u538b\u7f29\u53c2\u6570\u3002tar\u7684\u53c2\u6570\uff1a1.\u6587\u4ef6\u6253\u5305\/home\/www\/images.tar\u4e5f\u53ef\u4ee5\u76f4\u63a5\u5148\u8fdb\u5165\u8981\u6253\u5305\u7684\u6587\u4ef6\u5939\u76ee\u5f55\uff0c\u5c06\u5f53\u524d\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u8fdb\u884c\u6253\u5305\uff0c\u6837\u4f8b\u5982\u4e0b\uff1a.tar\uff0c\u5982\u679c\u52a0z\u53c2\u6570\uff0c\u5219\u4ee5tar.file\u6587\u4ef6\u30022.\u6587\u4ef6\u89e3\u538b\u5c06tgz\u6587\u4ef6\u89e3\u538b\u5230\u6307\u5b9a\u76ee\u5f55\u6bd4\u5982\u5c06\/kernel.\/linux-2.6.\u76ee\u5f55<\/p>\n","protected":false},"author":1,"featured_media":15740,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[176,307,386,84,194],"class_list":["post-15739","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledge","tag-ys","tag-cs","tag-db","tag-ml-2","tag-jy"],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/15739","targetHints":{"allow":["GET"]}}],"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=15739"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/15739\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media\/15740"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=15739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=15739"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=15739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}