linux\u7cfb\u7edf\u6709\u54ea\u51e0\u79cd\u6587\u4ef6\u7c7b\u578b<\/strong>\uff0c\u4f60\u5c06\u540c\u65f6\u5f97\u5230\u539f\u59cb\u6587\u4ef6\u548c\u538b\u7f29\u6587\u4ef6\u3002<\/p>\n\u8981\u5c06\u597d\u591a\u6587\u4ef6\u641c\u96c6\u5728\u4e00\u8d77\u5e76\u5728\u4e00\u4e2a\u547d\u4ee4\u4e2d\u538b\u7f29\u51fa\u201ctarball\u201d\uff0c\u4f7f\u7528\u76f8\u540c\u7684\u53e5\u578b\uff0c\u4f46\u8981\u6307\u5b9a\u8981\u5305\u542b\u7684\u6587\u4ef6\u4e3a\u4e00\u7ec4\uff0c\u800c\u4e0d\u662f\u5355\u4e2a\u6587\u4ef6\u3002\u8fd9\u513f\u6709\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n
$tarcfzbin.tgzbin\/*<\/p>\n
<\/p>\n
^^<\/p>\n
|+--\u5c06\u88ab\u5305\u542b\u7684\u6587\u4ef6<\/p>\n
+\u65b0\u7684\u6587\u4ef6<\/p>\n
zip<\/p>\n
\u547d\u4ee4\u521b\u5efa\u4e00\u4e2a\u538b\u7f29\u6587\u4ef6\uff0c\u4e0e\u6b64\u540c\u65f6\u4fdd\u7559\u539f\u59cb\u6587\u4ef6\u7684\u5b8c\u6574\u6027\u3002\u53e5\u578b\u50cf\u4f7f\u7528\u4e00\u6837\u7b80\u5355\uff0c\u53ea\u662f\u4f60\u5fc5\u9700\u8bb0\u4f4f\uff0c\u4f60\u7684\u539f\u59cb\u6587\u4ef6\u540d\u79f0\u5e94\u5f53\u662f\u547d\u4ee4\u884c\u4e0a\u7684\u6700\u540e\u4e00\u4e2a\u53c2\u6570\u3002<\/p>\n
$zip.\/bigfile.zipbigfile<\/p>\n
updating:bigfile(deflated79%)<\/p>\n
$ls-lbigfilebigfile.zip<\/p>\n
-rw-rw-r--1shsshs103270400Apr1611:18bigfile<\/p>\n
-rw-rw-r--1shsshs21606889Apr1611:19bigfile.zip<\/p>\n
gzip<\/p>\n
\u547d\u4ee4\u5341\u5206\u5bb9\u6613\u4f7f\u7528\u3002\u4f60\u53ea\u987b\u8981\u952e\u5165\uff0c\u7d27\u8ddf\u5176\u540e\u7684\u662f\u4f60\u60f3\u8981\u538b\u7f29\u7684\u6587\u4ef6\u540d\u79f0\u3002\u4e0d\u50cf\u4e0a\u8ff0\u63cf\u8ff0\u7684\u547d\u4ee4\uff0c\u5c06\u201c\u5c31\u5730\u201d\u52a0\u5bc6\u6587\u4ef6\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u539f\u59cb\u6587\u4ef6\u5c06\u88ab\u52a0\u5bc6\u6587\u4ef6\u66ff\u6362\u3002<\/p>\n
$gzipbigfile<\/p>\n
$ls-lbigfile*<\/p>\n
-rw-rw-r--1shsshs21606751Apr1517:57bigfile.gz<\/p>\n
bzip2<\/p>\n
\u50cf\u4f7f\u7528\u547d\u4ee4\u4e00\u6837\uff0c\u5c06\u5728\u4f60\u9009\u62e9\u7684\u6587\u4ef6\u201c\u5c31\u5730\u201d\u538b\u7f29\uff0c\u4e0d\u7559\u4e0b\u539f\u59cb\u6587\u4ef6\u3002<\/p>\n
$bzipbigfile<\/p>\n
$ls-lbigfile*<\/p>\n
-rw-rw-r--1shsshs18115234Apr1517:57bigfile.bz2<\/p>\n
xz<\/p>\n
\u662f\u538b\u7f29\u547d\u4ee4\u56e2\u961f\u4e2d\u7684\u4e00\u4e2a\u76f8\u5bf9\u8f83\u65b0\u7684\u6210\u5458\uff0c\u5728\u538b\u7f29\u6587\u4ef6\u7684\u80fd\u529b\u65b9\u9762\uff0c\u5b83\u662f\u4e00\u4e2a\u9886\u8dd1\u8005\u3002\u50cf\u4ee5\u524d\u7684\u4e24\u4e2a\u547d\u4ee4\u4e00\u6837\uff0c\u4f60\u53ea\u987b\u8981\u5c06\u6587\u4ef6\u540d\u79f0\u63d0\u4f9b\u7ed9\u547d\u4ee4\u3002\u518d\u6307\u51fa\u4e00\u6b21\uff0c\u539f\u59cb\u6587\u4ef6\u88ab\u5c31\u5730\u538b\u7f29\u3002<\/p>\n
$xzbigfile<\/p>\n
$ls-lbigfile*<\/p>\n
-rw-rw-r--1shsshs13427236Apr1517:30bigfile.xz<\/p>\n
\u5bf9\u4e8e\u5927\u6587\u4ef6\u6765\u8bf4\uff0c\u4f60\u53ef\u80fd\u4f1a\u6ce8\u610f\u5230\u5c06\u6bd4\u5176\u5b83\u7684\u538b\u7f29\u547d\u4ee4\u8017\u8d39\u66f4\u591a\u7684\u8fd0\u884c\u65f6\u95f4\uff0c\u5e76\u4e14\u538b\u7f29\u7684\u7ed3\u679c\u5374\u662f\u5341\u5206\u4ee4\u4eba\u60ca\u53f9\u7684\u3002<\/p>\n
\u5bf9\u6bd4<\/p>\n
\u5927\u591a\u6570\u4eba\u90fd\u636e\u8bf4\u8fc7\u201c\u5927\u5c0f\u4e0d\u662f\u4e00\u5207\u201d\u3002\u6240\u4ee5\uff0c\u8ba9\u6211\u4eec\u6bd4\u8f83\u4e00\u4e0b\u6587\u4ef6\u5927\u5c0f\u4ee5\u53ca\u4e00\u4e9b\u5f53\u4f60\u8ba1\u5212\u600e\u6837\u538b\u7f29\u6587\u4ef6\u65f6\u7684\u95ee\u9898\u3002<\/p>\n
\u4e0b\u8fb9\u663e\u793a\u7684\u7edf\u8ba1\u6570\u636e\u90fd\u4e0e\u538b\u7f29\u5355\u4e2a\u6587\u4ef6\u76f8\u5173\uff0c\u5728\u91cc\u9762\u663e\u793a\u7684\u793a\u4f8b\u4e2d\u4f7f\u7528bigfile\u3002\u8fd9\u4e2a\u6587\u4ef6\u662f\u4e00\u4e2a\u5927\u7684\u4e14\u76f8\u5f53\u968f\u673a\u7684\u6587\u672c\u6587\u4ef6\u3002\u538b\u7f29\u7387\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u53d6\u51b3\u4e8e\u6587\u4ef6\u7684\u5185\u5bb9\u3002<\/p>\n
\u5927\u5c0f\u51cf\u7f29\u7387<\/p>\n
\u5f53\u6bd4\u8f83\u65f6\uff0c\u91cc\u9762\u663e\u793a\u7684\u5404\u7c7b\u538b\u7f29\u547d\u5f62\u6210\u4e0b\u8fb9\u7684\u7ed3\u679c\u3002\u6bd4\u7387\u8868\u793a\u538b\u7f29\u6587\u4ef6\u4e0e\u539f\u59cb\u6587\u4ef6\u7684\u6bd4\u8f83\u7597\u6548\u3002<\/p>\n
-rw-rw-r--1shsshs103270400Apr1614:01bigfile<\/p>\n
------------------------------------------------------<\/p>\n
-rw-rw-r--1shsshs18115234Apr1613:59bigfile.bz2~17%<\/p>\n
-rw-rw-r--1shsshs21606751Apr1614:00bigfile.gz~21%<\/p>\n
-rw-rw-r--1shsshs21608322Apr1613:59bigfile.tgz~21%<\/p>\n
-rw-rw-r--1shsshs13427236Apr1614:00bigfile.xz~13%<\/p>\n
-rw-rw-r--1shsshs21606889Apr1613:59bigfile.zip~21%<\/p>\n
\u547d\u4ee4\u53d6\u80dc\uff0c\u6700\u7ec8\u53ea\u6709\u538b\u7f29\u6587\u4ef613%\u7684\u5927\u5c0f\uff0c\u5e76\u4e14\u6240\u6709\u8fd9\u79cd\u538b\u7f29\u547d\u4ee4\u90fd\u76f8\u5f53\u660e\u663e\u5730\u51cf\u4f4e\u539f\u59cb\u6587\u4ef6\u7684\u5927\u5c0f\u3002<\/p>\n
\u662f\u5426\u66ff\u6362\u539f\u59cb\u6587\u4ef6<\/p>\n
\u3001\u548c\u547d\u4ee4\u90fd\u7528\u538b\u7f29\u6587\u4ef6\u66ff\u6362\u539f\u59cb\u6587\u4ef6\u3002\u548c\u547d\u4ee4\u4e0d\u66ff\u6362\u3002<\/p>\n
\u8fd0\u884c\u65f6\u95f4<\/p>\n
\u547d\u4ee4\u663e\u7136\u6bd4\u5176\u5b83\u547d\u4ee4\u987b\u8981\u8017\u8d39\u66f4\u591a\u7684\u65f6\u95f4\u6765\u52a0\u5bc6\u6587\u4ef6\u3002\u5bf9\u4e8ebigfile\u6765\u8bf4\uff0c\u5927\u7ea6\u7684\u65f6\u95f4\u662f\uff1a<\/p>\n
\u547d\u4ee4\u8fd0\u884c\u65f6\u95f4<\/p>\n
tar4.9\u79d2<\/p>\n
zip5.2\u79d2<\/p>\n
bzip222.8\u79d2<\/p>\n
gzip4.8\u79d2<\/p>\n
xz50.4\u79d2<\/p>\n
\u89e3\u538b\u7f29\u6587\u4ef6\u5f88\u53ef\u80fd\u6bd4\u538b\u7f29\u65f6\u95f4\u8981\u77ed\u5f97\u591a\u3002<\/p>\n
\u6587\u4ef6\u6743\u9650<\/p>\n
\u4e0d\u7ba1\u4f60\u5bf9\u538b\u7f29\u6587\u4ef6\u8bbe\u7f6e\u54ea\u4e9b\u6743\u9650\uff0c\u538b\u7f29\u6587\u4ef6\u7684\u6743\u9650\u5c06\u57fa\u4e8e\u4f60\u7684umask\u8bbe\u7f6e\uff0c\u4f46\u9664\u5916\uff0c\u5b83\u4fdd\u7559\u4e86\u539f\u59cb\u6587\u4ef6\u7684\u6743\u9650\u3002<\/p>\n
\u4e0eWindows\u7684\u517c\u5bb9\u6027<\/p>\n
\u547d\u4ee4\u521b\u5efa\u7684\u6587\u4ef6\u53ef\u4ee5\u5728Windows\u7cfb\u7edf\u4ee5\u53caLinux\u548c\u5176\u4ed6Unix\u7cfb\u7edf\u4e0a\u4f7f\u7528\uff08\u5373\u89e3\u538b\uff09\uff0c\u800c\u65e0\u9700\u5b89\u88c5\u5176\u4ed6\u5de5\u5177\uff0c\u65e0\u8bba\u8fd9\u79cd\u5de5\u5177\u53ef\u80fd\u662f\u53ef\u7528\u8fd8\u662f\u4e0d\u53ef\u7528\u7684\u3002<\/p>\n
\u89e3\u538b\u7f29\u6587\u4ef6<\/p>\n
\u89e3\u538b\u6587\u4ef6\u7684\u547d\u4ee4\u4e0e\u538b\u7f29\u6587\u4ef6\u7684\u547d\u4ee4\u7c7b\u4f3c\u3002\u5728\u6211\u4eec\u8fd0\u884c\u4e0a\u8ff0\u538b\u7f29\u547d\u4ee4\u540e\uff0c\u8fd9\u79cd\u547d\u4ee4\u7528\u4e8e\u89e3\u538b\u7f29bigfile\uff1a<\/p>\n
tar\uff1a<\/p>\n
zip\uff1a<\/p>\n
gzip\uff1a<\/p>\n
bzip2\uff1a<\/p>\n
xz\uff1a\u6216<\/p>\n
\u81ea\u5df1\u8fd0\u884c\u538b\u7f29\u5bf9\u6bd4<\/p>\n
\u5047\u5982\u4f60\u60f3\u81ea\u5df1\u8fd0\u884c\u4e00\u4e9b\u6d4b\u8bd5\uff0c\u6293\u53d6\u4e00\u4e2a\u5927\u7684\u4e14\u53ef\u4ee5\u66ff\u6362\u7684\u6587\u4ef6\uff0c\u5e76\u4f7f\u7528\u91cc\u9762\u663e\u793a\u7684\u6bcf\u4f4d\u547d\u4ee4\u6765\u538b\u7f29\u5b83\u2014\u2014\u6700\u597d\u4f7f\u7528\u4e00\u4e2a\u65b0\u7684\u5b50\u76ee\u5f55\u3002\u4f60\u53ef\u80fd\u987b\u8981\u5148\u5b89\u88c5linux\u5b89\u88c5\uff0c\u5047\u5982\u4f60\u60f3\u5728\u6d4b\u8bd5\u4e2d\u5305\u542b\u5b83\u7684\u8bdd\u3002\u8fd9\u4e2a\u811a\u672c\u53ef\u80fd\u66f4\u5bb9\u6613\u5730\u8fdb\u884c\u538b\u7f29\uff0c\u5e76\u4e14\u53ef\u80fd\u987b\u8981\u8017\u8d39\u51e0\u5206\u949f\u5b8c\u6210\u3002<\/p>\n
#!\/bin\/bash<\/p>\n
#\u5bfb\u95ee\u7528\u6237\u6587\u4ef6\u540d\u79f0<\/p>\n
echo-n\"filename>\"<\/p>\n
readfilename<\/p>\n
#\u4f60\u987b\u8981\u8fd9\u4e2a\uff0c\u7531\u4e8e\u4e00\u4e9b\u547d\u4ee4\u5c06\u66ff\u6362\u539f\u59cb\u6587\u4ef6<\/p>\n
cp$filename$filename-2<\/p>\n
#\u5148\u6e05\u9664(\u4ee5\u514d\u539f\u672c\u7684\u7ed3\u679c\u4f9d\u7136\u53ef\u7528)<\/p>\n
rm$filename.*<\/p>\n
tarcvfz.\/$filename.tgz$filename>\/dev\/null<\/p>\n
zip$filename.zip$filename>\/dev\/null<\/p>\n
bzip2$filename<\/p>\n
#\u6062\u590d\u539f\u59cb\u6587\u4ef6<\/p>\n
cp$filename-2$filename<\/p>\n
gzip$filename<\/p>\n
#\u6062\u590d\u539f\u59cb\u6587\u4ef6<\/p>\n
cp$filename-2$filename<\/p>\n
xz$filename<\/p>\n
#\u663e\u793a\u7ed3\u679c<\/p>\n
ls-l$filename.*<\/p>\n
#\u66ff\u6362\u539f\u59cb\u6587\u4ef6<\/p>\n
mv$filename-2$filename<\/p>\n
via:<\/p>\n","protected":false},"excerpt":{"rendered":"
\u4e0a\u6709\u4e0d\u5c11\u7528\u4e8e\u538b\u7f29\u6587\u4ef6\u7684\u547d\u4ee4\u3002\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u6bd4\u8f83\u8fd9\u4e9b\u538b\u7f29\u547d\u4ee4\u5e76\u6307\u51fa\u663e\u8457\u7684\u4e0d\u540c\u3002ball\u201d\uff0c\u4f7f\u7528\u76f8\u540c\u7684\u8bed\u6cd5\uff0c\u4f46\u8981\u6307\u5b9a\u8981\u5305\u542b\u7684\u6587\u4ef6\u4e3a\u4e00\u7ec4\uff0c\u800c\u4e0d\u662f\u5355\u4e2a\u6587\u4ef6\u3002\u6240\u4ee5\uff0c\u8ba9\u6211\u4eec\u6bd4\u8f83\u4e00\u4e0b\u6587\u4ef6\u5927\u5c0f\u4ee5\u53ca\u4e00\u4e9b\u5f53\u4f60\u8ba1\u5212\u5982\u4f55\u538b\u7f29\u6587\u4ef6\u65f6\u7684\u95ee\u9898\u3002\u5f53\u6bd4\u8f83\u65f6\uff0c\u4e0a\u9762\u663e\u793a\u7684\u5404\u79cd\u538b\u7f29\u547d\u4ea7\u751f\u4e0b\u9762\u7684\u7ed3\u679c\u3002\u767e\u5206\u6bd4\u8868\u793a\u538b\u7f29\u6587\u4ef6\u4e0e\u539f\u59cb\u6587\u4ef6\u7684\u6bd4\u8f83\u6548\u679c\u3002\u7cfb\u7edf\u4e0a\u4f7f\u7528\uff08\u5373\u89e3\u538b\uff09\uff0c\u800c\u65e0\u9700\u5b89\u88c5\u5176\u4ed6\u5de5\u5177\uff0c\u65e0\u8bba\u8fd9\u4e9b\u5de5\u5177\u53ef\u80fd\u662f\u53ef\u7528\u8fd8\u662f\u4e0d\u53ef\u7528\u7684\u3002<\/p>\n","protected":false},"author":1,"featured_media":283734,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-283733","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/283733","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=283733"}],"version-history":[{"count":0,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/283733\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/283734"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=283733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=283733"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=283733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}