{"id":205865,"date":"2020-12-06T08:18:55","date_gmt":"2020-12-06T00:18:55","guid":{"rendered":"https:\/\/gulass.cn\/?p=205865"},"modified":"2020-11-24T14:19:51","modified_gmt":"2020-11-24T06:19:51","slug":"command-split-merge","status":"publish","type":"post","link":"https:\/\/gulass.cn\/command-split-merge.html","title":{"rendered":"\u547d\u4ee4\u884c\u4e2d\u7684\u62c6\u5206\u4e0e\u5408\u5e76"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5907\u4efd\u6587\u4ef6\u65f6\u5e38\u5e38\u6d89\u53ca\u5230\u5927\u6587\u4ef6\u4f20\u8f93\u7684\u95ee\u9898\uff0c\u9047\u5230\u7f51\u7edc\u8d28\u91cf\u4e0d\u4f73\u6216\u8005\u5176\u4ed6\u95ee\u9898\u5e38\u5e38\u4f1a\u5bfc\u81f4\u4f20\u8f93\u4e2d\u65ad\uff0c\u800c\u4e0d\u5f97\u4e0d\u8fdb\u884c\u91cd\u4f20\u3002\u5982\u679c\u91c7\u7528\u5148\u5c06\u5927\u6587\u4ef6\u62c6\u5206\u6210\u591a\u4e2a\u5c0f\u6587\u4ef6\u8fdb\u884c\u4f20\u8f93\u3001\u5f85\u5168\u90e8\u4f20\u8f93\u5b8c\u6210\u540e\u5408\u5e76\u6240\u6709\u6587\u4ef6\u7684\u65b9\u5f0f\uff0c\u5f80\u5f80\u53ef\u4ee5\u6539\u5584\u4f20\u8f93\u4f53\u9a8c\u3002\u8fd9\u4e00\u8282\u5c06\u4f1a\u4ecb\u7ecd Linux \u547d\u4ee4\u884c\u4e0b\u7684\u6587\u4ef6\u62c6\u5206\u4e0e\u5408\u5e76\u64cd\u4f5c\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

\u4f5c\u4e3a\u4e00\u4e2a\u5de5\u7a0b\u5e08\uff0c\u6211\u4eec\u7ecf\u5e38\u4e0e\u547d\u4ee4\u884c\u6253\u4ea4\u9053\uff0c\u4f46\u9664\u4e86\u5de5\u4f5c\u7528\u7684\u547d\u4ee4\uff0c\u4f60\u662f\u5426\u5c1d\u8bd5\u8fc7\u8ba9\u547d\u4ee4\u6765\u66ff\u4ee3\u4f60\u751f\u6d3b\u4e2d\u65b9\u65b9\u9762\u9762\uff1f<\/p>\n

\u4e3a\u4e86\u8ba9\u66f4\u591a\u7684\u7231\u597d\u8005\u53ef\u4ee5\u7528\u547d\u4ee4\u884c\u4f5c\u4e3a\u81ea\u5df1\u7684\u6709\u6548\u5de5\u5177\uff0cLinux \u4e2d\u56fd\u7279\u522b\u9080\u8bf7\u4e86\u4e09\u4f4d\u4f5c\u8005\uff0c\u64b0\u5199\u4e86\u300a\u547d\u4ee4\u884c\u751f\u5b58\u6307\u5357\u300b\uff0c\u5e0c\u671b\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e2a\u7cfb\u5217\u7684\u6587\u7ae0\uff0c\u8ba9\u4f60\u6362\u4e00\u4e2a\u89c6\u89d2\uff0c\u6765\u770b\u5f85\u547d\u4ee4\u884c\u7684\u5b58\u5728\u3002\u5982\u679c\u4f60\u60f3\u4f53\u9a8c\u4e00\u4e0b\u4e0d\u4e00\u6837\u7684\u547d\u4ee4\u884c\uff0c\u90a3\u5c31\u4e0d\u59a8\u6765\u770b\u770b\u4eca\u5929\u7684\u300a\u547d\u4ee4\u884c\u751f\u5b58\u6307\u5357\u300b\u3002<\/p>\n

\u64cd\u4f5c\u6982\u8ff0<\/strong><\/div>\n

\u5907\u4efd\u6587\u4ef6\u65f6\u5e38\u5e38\u6d89\u53ca\u5230\u5927\u6587\u4ef6\u4f20\u8f93\u7684\u95ee\u9898\uff0c\u9047\u5230\u7f51\u7edc\u8d28\u91cf\u4e0d\u4f73\u6216\u8005\u5176\u4ed6\u95ee\u9898\u5e38\u5e38\u4f1a\u5bfc\u81f4\u4f20\u8f93\u4e2d\u65ad\uff0c\u800c\u4e0d\u5f97\u4e0d\u8fdb\u884c\u91cd\u4f20\u3002\u5982\u679c\u91c7\u7528\u5148\u5c06\u5927\u6587\u4ef6\u62c6\u5206\u6210\u591a\u4e2a\u5c0f\u6587\u4ef6\u8fdb\u884c\u4f20\u8f93\u3001\u5f85\u5168\u90e8\u4f20\u8f93\u5b8c\u6210\u540e\u5408\u5e76\u6240\u6709\u6587\u4ef6\u7684\u65b9\u5f0f\uff0c\u5f80\u5f80\u53ef\u4ee5\u6539\u5584\u4f20\u8f93\u4f53\u9a8c\u3002<\/p>\n

\u8fd9\u4e00\u8282\u5c06\u4f1a\u4ecb\u7ecd Linux \u547d\u4ee4\u884c\u4e0b\u7684\u6587\u4ef6\u62c6\u5206\u4e0e\u5408\u5e76\u64cd\u4f5c\u3002<\/p>\n

\u6982\u5ff5\u548c\u672f\u8bed<\/strong><\/div>\n

\u62c6\u5206\uff0c\u987e\u540d\u601d\u4e49\uff0c\u5c31\u662f\u5c06\u4e00\u4e2a\u5927\u7684\u6587\u4ef6\u5206\u5272\u6210\u82e5\u5e72\u4e2a\u8f83\u5c0f\u7684\u6587\u4ef6\uff0c\u8fd9\u4e9b\u5c0f\u6587\u4ef6\u6309\u6b21\u5e8f\u62fc\u63a5\u540e\u53ef\u4ee5\u8fd8\u539f\u5927\u6587\u4ef6\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u6839\u636e\u6587\u4ef6\u5927\u5c0f\u8fdb\u884c\u62c6\u5206\u662f\u8f83\u4e3a\u5e38\u89c1\u7684\u65b9\u5f0f\uff1b\u4f46\u7531\u4e8e\u6587\u672c\u6587\u4ef6\u5177\u6709\u884c\u6570\u7279\u5f81\uff0c\u6240\u4ee5\u9664\u4e86\u6309\u5927\u5c0f\u62c6\u5206\u4e4b\u5916\uff0c\u4e5f\u53ef\u4ee5\u6309\u884c\u6570\u62c6\u5206\u3002<\/p>\n

\u5408\u5e76\uff0c\u5c31\u662f\u5c06\u82e5\u5e72\u4e2a\u8f83\u5c0f\u7684\u6587\u4ef6\u62fc\u63a5\u6210\u4e00\u4e2a\u8f83\u5927\u6587\u4ef6\u3002\u901a\u5e38\u53ea\u9700\u8981\u6309\u6b21\u5e8f\u8fde\u63a5\u5373\u53ef\uff0c\u76f8\u5bf9\u6bd4\u8f83\u7b80\u5355\u3002<\/p>\n

\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4e3a\u786e\u4fdd\u62c6\u5206\u524d\u548c\u5408\u5e76\u540e\u7684\u4e24\u4e2a\u6587\u4ef6\u76f8\u540c\uff0c\u9700\u8981\u8fdb\u884c\u9a8c\u8bc1\u3002<\/p>\n

\u64cd\u4f5c\u5b9e\u6218<\/strong><\/div>\n
\u573a\u666f\u4e00\uff1a\u4f7f\u7528 split \u62c6\u5206\u6587\u4ef6<\/strong><\/span><\/div>\n

plit \u662f Linux \u73af\u5883\u63d0\u4f9b\u7684\u6587\u4ef6\u62c6\u5206\u5b9e\u7528\u7a0b\u5e8f\uff0c\u540c\u65f6\u652f\u6301\u4e8c\u8fdb\u5236\u6587\u4ef6\u548c\u6587\u672c\u6587\u4ef6\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\u5df2\u7ecf\u968f coreutils \u5185\u7f6e\u4e8e\u7cfb\u7edf\u4e2d\uff0c\u65e0\u9700\u53e6\u884c\u5b89\u88c5\u3002<\/p>\n

\u6309\u5927\u5c0f\u62c6\u5206\uff0c\u4e8c\u8fdb\u5236\u6587\u4ef6\u548c\u6587\u672c\u6587\u4ef6\u6309\u5927\u5c0f\u62c6\u5206\u65f6\u4f7f\u7528\u7684\u9009\u9879\u4e0d\u540c\uff1a<\/p>\n

    \n\u4e8c\u8fdb\u5236\u6587\u4ef6\u4f7f\u7528 -b \u9009\u9879\u6307\u5b9a\u5206\u5272\u540e\u7684\u6587\u4ef6\u5927\u5c0f\u3002
    \n\u6587\u672c\u6587\u4ef6\u5219\u4f7f\u7528 -C \u9009\u9879\u6307\u5b9a\u5206\u5272\u540e\u7684\u6587\u4ef6\u5927\u5c0f\u3002<\/ol>\n

    \u4e8c\u8005\u7528\u6cd5\u7c7b\u4f3c\uff0c\u53ea\u9700\u8981\uff1a
    \nsplit [\u9009\u9879] [\u5927\u5c0f] [\u5f85\u62c6\u5206\u6587\u4ef6] [\u62c6\u5206\u540e\u7684\u524d\u7f00\uff08\u53ef\u9009\uff09]
    \n\u4ee5\u5c06 debian-live-10.5.0-amd64-lxqt.iso\uff08\u7ea6 2.4 GB\uff09\u6309 100MB \u5927\u5c0f\u8fdb\u884c\u62c6\u5206\u4e3a\u4f8b\uff1a<\/p>\n

    \r\n> split -b 100M debian-live-10.5.0-amd64-lxqt.iso debian-live-\r\n<\/pre>\n

    \u53ef\u4ee5\u770b\u5230\u539f\u6587\u4ef6\u88ab\u62c6\u5206\u6210 25 \u4e2a\u66f4\u5c0f\u7684\u6587\u4ef6\uff0c\u4ece aa \u5230 ay\uff1a<\/p>\n

    \r\ndebian-live-aa  debian-live-ad  debian-live-ag  debian-live-aj  debian-live-am  debian-live-ap  debian-live-as  debian-live-av  debian-live-ay\r\ndebian-live-ab  debian-live-ae  debian-live-ah  debian-live-ak  debian-live-an  debian-live-aq  debian-live-at  debian-live-aw\r\ndebian-live-ac  debian-live-af  debian-live-ai  debian-live-al  debian-live-ao  debian-live-ar  debian-live-au  debian-live-ax\r\n<\/pre>\n
    \u573a\u666f\u4e8c\uff1a\u4f7f\u7528 cat \u5408\u5e76\u6587\u4ef6<\/strong><\/span><\/div>\n

    cat \u662f linux \u73af\u5883\u63d0\u4f9b\u7684\u6587\u4ef6\u8fde\u63a5\u5b9e\u7528\u7a0b\u5e8f\uff0c\u80fd\u591f\u8fde\u63a5\u6587\u4ef6\u5e76\u5c06\u5176\u8f93\u51fa\u5230\u6807\u51c6\u8f93\u51fa\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\u5df2\u7ecf\u968f coreutils \u5185\u7f6e\u4e8e\u7cfb\u7edf\u4e2d\uff0c\u65e0\u9700\u53e6\u884c\u5b89\u88c5\u3002<\/p>\n

    \u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c\u4e3a\u4e86\u4fdd\u8bc1\u5408\u5e76\u540e\u7684\u6587\u4ef6\u548c\u539f\u59cb\u6587\u4ef6\u4e00\u81f4\uff0c\u5728\u6709\u6761\u4ef6\u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u7528 diff \u547d\u4ee4\u9a8c\u8bc1\u3002<\/p>\n

    \u4f7f\u7528 cat \u5408\u5e76\u6587\u4ef6\u53ef\u4ee5\u91c7\u7528 cat [\u6587\u4ef6...] > [\u5408\u5e76\u540e\u7684\u6587\u4ef6\u540d] \u7684\u683c\u5f0f\uff0c\u6b64\u65b9\u6cd5\u5bf9\u4e8c\u8fdb\u5236\u6587\u4ef6\u548c\u6587\u672c\u6587\u4ef6\u5747\u6709\u6548\u3002<\/p>\n

    \u4ee5\u4e4b\u524d\u7684 debian-live-aa \u5230 debian-live-ay \u4e3a\u4f8b\uff0c\u5408\u5e76\u65f6\u53ef\u4ee5\u4f7f\u7528\u6b64\u547d\u4ee4\uff1a<\/p>\n

    \r\n> cat debian-live-* > debian-live.iso\r\n<\/pre>\n

    \u53ef\u4ee5\u770b\u5230\u76ee\u5f55\u4e0b\u4f1a\u751f\u6210\u5408\u5e76\u540e\u7684 debian-live.iso \u6587\u4ef6\u3002<\/p>\n

    \r\ndebian-live-aa  debian-live-ad  debian-live-ag  debian-live-aj  debian-live-am  debian-live-ap  debian-live-as  debian-live-av  debian-live-ay\r\ndebian-live-ab  debian-live-ae  debian-live-ah  debian-live-ak  debian-live-an  debian-live-aq  debian-live-at  debian-live-aw  debian-live.iso\r\ndebian-live-ac  debian-live-af  debian-live-ai  debian-live-al  debian-live-ao  debian-live-ar  debian-live-au  debian-live-ax\r\n<\/pre>\n
    \u4f7f\u7528 diff \u9a8c\u8bc1\u6587\u4ef6<\/strong><\/span><\/div>\n

    \u53ea\u9700\u8981\u6309 diff [\u539f\u6587\u4ef6] [\u73b0\u6587\u4ef6] \u7684\u683c\u5f0f\u6267\u884c\u5373\u53ef\u3002\u5982\u679c\u6ca1\u6709\u8f93\u51fa\uff0c\u5219\u8bc1\u660e\u4e24\u4e2a\u6587\u4ef6\u4e4b\u95f4\u6ca1\u6709\u5dee\u5f02\u3002<\/p>\n

    \u4ee5\u5bf9\u6bd4 debian-live-10.5.0-amd64-lxqt.iso \u548c debian-live.iso \u4e3a\u4f8b\uff1a<\/p>\n

    \r\n> diff debian-live-10.5.0-amd64-lxqt.iso debian-live.iso\r\n> # \u65e0\u8f93\u51fa\uff0c\u8868\u793a\u4e8c\u8005\u662f\u76f8\u540c\u7684\u3002\r\n<\/pre>\n
    \u5c0f\u7ec3\u4e60<\/strong><\/div>\n

    \u5c1d\u8bd5\u4ee5\u4e0d\u540c\u65b9\u5f0f\u62c6\u5206\u7cfb\u7edf\u4e2d\u7684\u65e5\u5fd7\u6587\u4ef6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

    \u5907\u4efd\u6587\u4ef6\u65f6\u5e38\u5e38\u6d89\u53ca\u5230\u5927\u6587\u4ef6\u4f20\u8f93\u7684\u95ee\u9898\uff0c\u9047\u5230\u7f51\u7edc\u8d28\u91cf\u4e0d\u4f73\u6216\u8005\u5176\u4ed6\u95ee\u9898\u5e38\u5e38\u4f1a\u5bfc\u81f4\u4f20\u8f93\u4e2d\u65ad\uff0c\u800c\u4e0d\u5f97\u4e0d\u8fdb\u884c\u91cd\u4f20\u3002\u5982\u679c\u91c7\u7528\u5148\u5c06\u5927\u6587\u4ef6\u62c6\u5206\u6210\u591a\u4e2a\u5c0f\u6587\u4ef6\u8fdb\u884c\u4f20\u8f93\u3001\u5f85\u5168\u90e8\u4f20\u8f93\u5b8c\u6210\u540e\u5408\u5e76\u6240\u6709\u6587\u4ef6\u7684\u65b9\u5f0f\uff0c\u5f80\u5f80\u53ef\u4ee5\u6539\u5584\u4f20\u8f93\u4f53\u9a8c\u3002\u8fd9\u4e00\u8282\u5c06\u4f1a\u4ecb\u7ecd Linux \u547d\u4ee4\u884c\u4e0b\u7684\u6587\u4ef6\u62c6\u5206\u4e0e\u5408\u5e76\u64cd\u4f5c\u3002<\/p>\n","protected":false},"author":370,"featured_media":11131,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-205865","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/205865","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\/370"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=205865"}],"version-history":[{"count":4,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/205865\/revisions"}],"predecessor-version":[{"id":205892,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/205865\/revisions\/205892"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/11131"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=205865"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=205865"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=205865"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}