{"id":276527,"date":"2023-07-03T04:05:54","date_gmt":"2023-07-02T20:05:54","guid":{"rendered":"https:\/\/lrxjmw.cn\/lwjqgjyfx.html"},"modified":"2023-07-03T04:05:54","modified_gmt":"2023-07-02T20:05:54","slug":"lwjqgjyfx","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lwjqgjyfx.html","title":{"rendered":"Linux\u6587\u4ef6\u5207\u5272\uff1a\u7ecf\u9a8c\u5206\u4eab\uff01"},"content":{"rendered":"

\u5728Linux<\/a>\u7cfb\u7edf<\/a>\u4e2d\uff0c\u6587\u4ef6\u5207\u5272\u662f\u4e00\u4e2a\u975e\u5e38\u5b9e\u7528\u7684\u64cd\u4f5c\u3002\u65e0\u8bba\u662f\u4e3a\u4e86\u65b9\u4fbf\u4f20\u8f93\u5927\u6587\u4ef6\uff0c\u8fd8\u662f\u4e3a\u4e86\u8282\u7701\u5b58\u50a8\u7a7a\u95f4\uff0c\u6587\u4ef6\u5207\u5272\u90fd\u80fd\u6d3e\u4e0a\u7528\u573a\u3002\u4e0b\u9762linux\u7a7a\u95f4\uff0c\u6211\u5c06\u5206\u4eab\u4e00\u4e9b\u5173\u4e8eLinux\u6587\u4ef6\u5207\u5272\u7684\u7ecf\u9a8c\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n

\u4e00\u3001\u6587\u4ef6\u5207\u5272\u7684\u57fa\u672c\u539f\u7406<\/p>\n

\u5728Linux\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4<\/a>\u884c\u5de5\u5177\u6765\u8fdb\u884c\u6587\u4ef6\u5207\u5272\u3002\u5176\u4e2d\u6700\u5e38\u7528\u7684\u547d\u4ee4\u662f`split`\u547d\u4ee4\u3002\u8be5\u547d\u4ee4\u53ef\u4ee5\u6309\u7167\u6307\u5b9a\u5927\u5c0f\u6216\u884c\u6570\u5c06\u6587\u4ef6\u5206\u5272\u6210\u591a\u4e2a\u5c0f\u6587\u4ef6\u3002\u4f8b\u5982\uff0c\u5982\u679c\u6211\u4eec\u8981\u5c06\u4e00\u4e2a10GB\u7684\u5927\u6587\u4ef6\u5207\u5272\u62101GB\u5927\u5c0f\u7684\u5c0f\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

\n

shell\nsplit -b 1G largefile smallfile\n<\/pre>\n<\/p>\n

\u8fd9\u4e2a\u547d\u4ee4\u5c06\u4f1a\u751f\u621010\u4e2a\u5c0f\u6587\u4ef6\uff0c\u6bcf\u4e2a\u6587\u4ef6\u7684\u5927\u5c0f\u4e3a1GB\u3002<\/p>\n

\u4e8c\u3001\u6309\u7167\u6587\u4ef6\u5927\u5c0f\u8fdb\u884c\u5207\u5272<\/p>\n

\u9664\u4e86\u6309\u7167\u6307\u5b9a\u5927\u5c0f\u8fdb\u884c\u5207\u5272\u5916\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u6309\u7167\u6307\u5b9a\u7684\u884c\u6570\u8fdb\u884c\u5207\u5272\u3002\u4f8b\u5982\uff0c\u5982\u679c\u6211\u4eec\u8981\u5c06\u4e00\u4e2a10000\u884c\u7684\u6587\u672c\u6587\u4ef6\u6309\u7167\u6bcf\u4e2a\u6587\u4ef61000\u884c\u8fdb\u884c\u5207\u5272\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

\n

shell\nsplit -l 1000 textfile smallfile\n<\/pre>\n<\/p>\n

\u8fd9\u4e2a\u547d\u4ee4\u5c06\u4f1a\u751f\u621010\u4e2a\u5c0f\u6587\u4ef6\uff0c\u6bcf\u4e2a\u6587\u4ef6\u5305\u542b1000\u884c\u6587\u672c\u3002<\/p>\n

\u4e09\u3001\u81ea\u5b9a\u4e49\u8f93\u51fa\u6587\u4ef6\u540d<\/p>\n

\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c`split`\u547d\u4ee4\u4f1a\u4ee5\u5b57\u6bcd\u987a\u5e8f\u4e3a\u751f\u6210\u7684\u5c0f\u6587\u4ef6\u547d\u540d\uff0c\u4f8b\u5982aa\u3001ab\u3001ac\u7b49\u3002\u4f46\u662f\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u81ea\u5b9a\u4e49\u8f93\u51fa\u6587\u4ef6\u540d\u3002\u4f8b\u5982\uff0c\u5982\u679c\u6211\u4eec\u5e0c\u671b\u5c06\u4e00\u4e2a\u5927\u6587\u4ef6\u5207\u5272\u621010\u4e2a\u5c0f\u6587\u4ef6\uff0c\u5e76\u4ee5\u6570\u5b57\u9012\u589e\u7684\u65b9\u5f0f\u547d\u540d\u8fd9\u4e9b\u5c0f\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

\n

shell\nsplit -d-a 3 -b 1G largefile smallfile\n<\/pre>\n<\/p>\n

\u8fd9\u4e2a\u547d\u4ee4\u5c06\u4f1a\u751f\u621010\u4e2a\u5c0f\u6587\u4ef6\uff0c\u5206\u522b\u4ee5000\u3001001\u3001002\u7b49\u6570\u5b57\u9012\u589e\u7684\u65b9\u5f0f\u547d\u540d\u3002<\/p>\n

\u56db\u3001\u5408\u5e76\u5207\u5272\u540e\u7684\u6587\u4ef6<\/p>\n

\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u5c06\u5207\u5272\u540e\u7684\u5c0f\u6587\u4ef6\u5408\u5e76\u6210\u4e00\u4e2a\u5927\u6587\u4ef6\u3002Linux\u63d0\u4f9b\u4e86`cat`\u547d\u4ee4\u6765\u5b9e\u73b0\u8fd9\u4e2a\u529f\u80fd\u3002\u4f8b\u5982linux \u6587\u4ef6\u5207\u5272<\/strong>\uff0c\u5982\u679c\u6211\u4eec\u8981\u5c06\u5207\u5272\u540e\u768410\u4e2a\u5c0f\u6587\u4ef6\u5408\u5e76\u6210\u4e00\u4e2a\u5927\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

\n

shell\ncat smallfile*> largefile\n<\/pre>\n<\/p>\n

linux\u5207\u5206\u6587\u4ef6\u547d\u4ee4_linux\u5206\u5272\u6570\u636e\u6587\u4ef6_linux \u6587\u4ef6\u5207\u5272<\/p>\n

\u8fd9\u4e2a\u547d\u4ee4\u5c06\u4f1a\u5c06\u6240\u6709\u4ee5smallfile\u5f00\u5934\u7684\u6587\u4ef6\u5185\u5bb9\u5408\u5e76\u5230largefile\u4e2d\u3002<\/p>\n

\u4e94\u3001\u6ce8\u610f\u4e8b\u9879\u548c\u5e38\u89c1\u95ee\u9898<\/p>\n

\u5728\u8fdb\u884c\u6587\u4ef6\u5207\u5272\u65f6\uff0c\u6709\u4e00\u4e9b\u6ce8\u610f\u4e8b\u9879\u548c\u5e38\u89c1\u95ee\u9898\u9700\u8981\u6ce8\u610f\u3002\u9996\u5148linux \u6587\u4ef6\u5207\u5272<\/strong>\uff0c\u5728\u5207\u5272\u8fc7\u7a0b\u4e2d\uff0c\u8bf7\u786e\u4fdd\u76ee\u6807\u5b58\u50a8\u7a7a\u95f4\u8db3\u591f\u3002\u5176\u6b21red hat linux\u4e0b\u8f7d\uff0c\u5728\u5408\u5e76\u6587\u4ef6\u65f6\uff0c\u8bf7\u786e\u4fdd\u6240\u6709\u5c0f\u6587\u4ef6\u90fd\u4f4d\u4e8e\u540c\u4e00\u76ee\u5f55\u4e0b\u3002\u6700\u540e\uff0c\u5728\u8fdb\u884c\u5207\u5272\u64cd\u4f5c\u4e4b\u524d\uff0c\u8bf7\u5907\u4efd\u539f\u59cb\u6587\u4ef6\uff0c\u4ee5\u9632\u6b62\u610f\u5916\u60c5\u51b5\u53d1\u751f\u3002<\/p>\n

\u603b\u7ed3\uff1a<\/p>\n

\u901a\u8fc7\u5bf9Linux\u6587\u4ef6\u5207\u5272\u7684\u7ecf\u9a8c\u5206\u4eab\uff0c\u6211\u4eec\u4e86\u89e3\u4e86\u6587\u4ef6\u5207\u5272\u7684\u57fa\u672c\u539f\u7406\u548c\u5e38\u7528\u547d\u4ee4\u3002\u65e0\u8bba\u662f\u6309\u7167\u6587\u4ef6\u5927\u5c0f\u8fd8\u662f\u884c\u6570\u8fdb\u884c\u5207\u5272\uff0c\u6211\u4eec\u90fd\u53ef\u4ee5\u7075\u6d3b\u5730\u4f7f\u7528`split`\u547d\u4ee4\u6765\u5b9e\u73b0\u3002\u540c\u65f6\uff0c\u6211\u4eec\u8fd8\u5b66\u4f1a\u4e86\u5982\u4f55\u81ea\u5b9a\u4e49\u8f93\u51fa\u6587\u4ef6\u540d\u548c\u5408\u5e76\u5207\u5272\u540e\u7684\u6587\u4ef6\u3002\u5e0c\u671b\u8fd9\u4e9b\u7ecf\u9a8c\u5bf9\u5927\u5bb6\u5728Linux\u7cfb\u7edf\u4e2d\u8fdb\u884c\u6587\u4ef6\u5207\u5272\u65f6\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n

\u53c2\u8003\u8d44\u6599\uff1a<\/p>\n

- Linux Split Command: How to Split Large Files in Linux<\/p>\n

- Linux Cat Command: How to Concatenate Files in Linux\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u6587\u4ef6\u5207\u5272\u662f\u4e00\u4e2a\u975e\u5e38\u5b9e\u7528\u7684\u64cd\u4f5c\u3002\u4e0b\u9762\uff0c\u6211\u5c06\u5206\u4eab\u4e00\u4e9b\u5173\u4e8eLinux\u6587\u4ef6\u5207\u5272\u7684\u7ecf\u9a8c\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u6709\u6240\u5e2e\u52a9\u3002\u4e00\u3001\u6587\u4ef6\u5207\u5272\u7684\u57fa\u672c\u539f\u7406\u4f8b\u5982\uff0c\u5982\u679c\u6211\u4eec\u8981\u5c06\u4e00\u4e2a10000\u884c\u7684\u6587\u672c\u6587\u4ef6\u6309\u7167\u6bcf\u4e2a\u6587\u4ef61000\u884c\u8fdb\u884c\u5207\u5272\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a\u901a\u8fc7\u5bf9Linux\u6587\u4ef6\u5207\u5272\u7684\u7ecf\u9a8c\u5206\u4eab\uff0c\u6211\u4eec\u4e86\u89e3\u4e86\u6587\u4ef6\u5207\u5272\u7684\u57fa\u672c\u539f\u7406\u548c\u5e38\u7528\u547d\u4ee4\u3002\u5e0c\u671b\u8fd9\u4e9b\u7ecf\u9a8c\u5bf9\u5927\u5bb6\u5728Linux\u7cfb\u7edf\u4e2d\u8fdb\u884c\u6587\u4ef6\u5207\u5272\u65f6\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n","protected":false},"author":1,"featured_media":276528,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-276527","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/276527","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=276527"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/276527\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/276528"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=276527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=276527"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=276527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}