{"id":89255,"date":"2026-08-02T18:32:27","date_gmt":"2026-08-02T10:32:27","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/89255.html"},"modified":"2026-08-02T18:32:27","modified_gmt":"2026-08-02T10:32:27","slug":"linux%e4%b8%8bc%e8%af%ad%e8%a8%80%e7%bc%93%e5%86%b2%e5%8c%ba%e5%8e%9f%e7%90%86-git%e7%89%88%e6%9c%ac%e6%8e%a7%e5%88%b6","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/89255.html","title":{"rendered":"Linux\u4e0bC\u8bed\u8a00\u7f13\u51b2\u533a\u539f\u7406 + Git\u7248\u672c\u63a7\u5236"},"content":{"rendered":"<h3>\u4e00\u3001\u7f13\u51b2\u533a&#xff08;Buffer&#xff09;\u8be6\u89e3<\/h3>\n<h4>1. \u4ec0\u4e48\u662f\u7f13\u51b2\u533a<\/h4>\n<p>\u7f13\u51b2\u533a\u672c\u8d28\u5c31\u662f\u5185\u5b58\u4e0a\u7684\u4e00\u5757\u4e34\u65f6\u7a7a\u95f4\u3002 \u64cd\u4f5c\u7cfb\u7edf IO \u64cd\u4f5c&#xff08;\u8bfb\u5199\u663e\u793a\u5668\u3001\u78c1\u76d8\u3001\u7f51\u7edc&#xff09;\u901f\u5ea6\u5f88\u6162&#xff0c;\u5982\u679c\u7a0b\u5e8f\u6bcf\u8f93\u51fa\u4e00\u4e2a\u5b57\u7b26\u5c31\u76f4\u63a5\u8c03\u7528\u7cfb\u7edf\u63a5\u53e3&#xff0c;\u9891\u7e41\u9677\u5165\u5185\u6838\u6001&#xff0c;\u6548\u7387\u6781\u4f4e\u3002 \u7f13\u51b2\u533a\u6838\u5fc3\u4f5c\u7528&#xff1a;\u5408\u5e76\u591a\u6b21 IO \u64cd\u4f5c&#xff0c;\u51cf\u5c11\u7cfb\u7edf\u8c03\u7528\u6b21\u6570&#xff0c;\u63d0\u5347\u6548\u7387\u3002<\/p>\n<p>Linux \u4e0b\u9ed8\u8ba4\u6253\u5f00\u4e09\u7c7b\u6807\u51c6\u6d41&#xff1a;<\/p>\n<ul>\n<li>\n<p>stdin&#xff1a;\u6807\u51c6\u8f93\u5165&#xff08;\u952e\u76d8&#xff09;<\/p>\n<\/li>\n<li>\n<p>stdout&#xff1a;\u6807\u51c6\u8f93\u51fa&#xff08;\u663e\u793a\u5668&#xff09;<\/p>\n<\/li>\n<li>\n<p>stderr&#xff1a;\u6807\u51c6\u9519\u8bef\u8f93\u51fa<\/p>\n<\/li>\n<\/ul>\n<p>\u533a\u5206\u91cd\u70b9&#xff1a;stdout \u5e26\u884c\u7f13\u51b2&#xff0c;stderr\u65e0\u7f13\u51b2&#xff0c;\u9519\u8bef\u4fe1\u606f\u53ef\u4ee5\u7acb\u523b\u6253\u5370\u3002<\/p>\n<h4>2. stdout \u884c\u7f13\u51b2\u89c4\u5219<\/h4>\n<p>\u7ec8\u7aef\u573a\u666f\u4e0b&#xff0c;stdout \u4f7f\u7528\u884c\u7f13\u51b2&#xff0c;\u6ee1\u8db3\u4efb\u610f\u6761\u4ef6\u624d\u5237\u65b0\u7f13\u51b2\u533a&#xff1a;<\/p>\n<li>\n<p>\u9047\u5230\u6362\u884c\u7b26 \\\\n&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u7a0b\u5e8f\u6b63\u5e38\u7ed3\u675f&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u7f13\u51b2\u533a\u7a7a\u95f4\u5199\u6ee1&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u4e3b\u52a8\u8c03\u7528 fflush(stdout) \u5f3a\u5236\u5237\u65b0\u3002<\/p>\n<\/li>\n<p>\u6f14\u793a\u4ee3\u7801&#xff1a;<\/p>\n<p>#include &lt;stdio.h&gt;<br \/>\n#include &lt;unistd.h&gt;<\/p>\n<p>int main()<br \/>\n{<br \/>\n\u00a0 \u00a0 printf(&#034;12345&#034;);<br \/>\n\u00a0 \u00a0 sleep(5);<br \/>\n\u00a0 \u00a0 return 0;<br \/>\n}<\/p>\n<p>\u8fd0\u884c\u73b0\u8c61&#xff1a;\u7a0b\u5e8f\u6682\u505c 5 \u79d2\u4e4b\u540e&#xff0c;\u5b57\u7b26\u4e32\u624d\u4e00\u6b21\u6027\u6253\u5370\u3002 \u539f\u56e0&#xff1a;\u6ca1\u6709\u6362\u884c&#xff0c;\u6570\u636e\u4fdd\u5b58\u5728\u7f13\u51b2\u533a&#xff0c;\u76f4\u5230\u8fdb\u7a0b\u9000\u51fa\u81ea\u52a8\u5237\u65b0\u7f13\u51b2\u533a\u3002<\/p>\n<p>\u52a0\u4e0a\u6362\u884c&#xff1a;printf(&#034;12345\\\\n&#034;);&#xff0c;\u6587\u5b57\u7acb\u523b\u8f93\u51fa\u3002<\/p>\n<p>\u5f3a\u5236\u5237\u65b0\u5199\u6cd5<\/p>\n<p>printf(&#034;12345&#034;);<br \/>\nfflush(stdout); \/\/ \u7acb\u523b\u628a\u7f13\u51b2\u533a\u5185\u5bb9\u5237\u5230\u663e\u793a\u5668<br \/>\nsleep(5);<\/p>\n<h4>3. \u8865\u5145\u77e5\u8bc6\u70b9<\/h4>\n<p>\u7f13\u51b2\u533a\u6a21\u5f0f\u533a\u5206&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u884c\u7f13\u51b2&#xff1a;\u7ec8\u7aef stdout&#xff0c;\u9047\\\\n\u5237\u65b0&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u5168\u7f13\u51b2&#xff1a;\u666e\u901a\u6587\u4ef6&#xff0c;\u7f13\u51b2\u533a\u5199\u6ee1\u624d\u5237\u65b0&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u65e0\u7f13\u51b2&#xff1a;stderr&#xff0c;\u6570\u636e\u76f4\u63a5\u8f93\u51fa&#xff0c;\u4e0d\u7f13\u5b58\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>\u4e8c\u3001\u7248\u672c\u63a7\u5236\u5de5\u5177 Git<\/h3>\n<h4>1. \u7248\u672c\u63a7\u5236\u5668\u53d1\u5c55\u5386\u53f2<\/h4>\n<li>\n<p>\u65e9\u671f&#xff1a;\u4eba\u5de5\u5907\u4efd&#xff0c;\u590d\u5236\u6587\u4ef6\u5939&#xff08;code_v1\u3001code_v2&#xff09;&#xff0c;\u6781\u5176\u7b28\u91cd&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u4e2d\u5fc3\u5316\u7248\u672c\u5de5\u5177&#xff08;SVN&#xff09;&#xff1a;\u6240\u6709\u4ee3\u7801\u4fdd\u5b58\u5728\u4e2d\u5fc3\u670d\u52a1\u5668&#xff0c;\u79bb\u7ebf\u65e0\u6cd5\u63d0\u4ea4&#xff0c;\u5355\u70b9\u6545\u969c\u98ce\u9669&#xff1b;<\/p>\n<\/li>\n<li>\n<p>Git&#xff08;\u5206\u5e03\u5f0f\u7248\u672c\u63a7\u5236&#xff09;&#xff1a;2005 \u5e74 Linus \u4e3a Linux \u5185\u6838\u5f00\u53d1\u3002<\/p>\n<\/li>\n<p>\u5206\u5e03\u5f0f&#xff1a;\u6bcf\u4e2a\u4eba\u672c\u5730\u90fd\u62e5\u6709\u4e00\u4efd\u5b8c\u6574\u4ed3\u5e93\u5feb\u7167&#xff0c;\u4e0d\u4f9d\u8d56\u5355\u4e00\u670d\u52a1\u5668&#xff0c;\u652f\u6301\u79bb\u7ebf\u63d0\u4ea4\u3002<\/p>\n<h4>2. Git \u6838\u5fc3\u6982\u5ff5<\/h4>\n<ul>\n<li>\n<p>\u5de5\u4f5c\u533a (Working Directory)&#xff1a;\u4f60\u8089\u773c\u770b\u5230\u7684\u4ee3\u7801\u6587\u4ef6\u5939&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u6682\u5b58\u533a (Stage\/Index)&#xff1a;\u4e34\u65f6\u4e2d\u8f6c\u7ad9&#xff0c;git add \u5c06\u6587\u4ef6\u653e\u5165\u6682\u5b58\u533a&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u672c\u5730\u4ed3\u5e93 (Repository)&#xff1a;.git \u9690\u85cf\u76ee\u5f55&#xff0c;\u4fdd\u5b58\u6240\u6709\u5386\u53f2\u7248\u672c\u5feb\u7167&#xff0c;git commit \u5c06\u6682\u5b58\u5185\u5bb9\u5b58\u5165\u672c\u5730\u4ed3\u5e93\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u7b80\u6613\u6d41\u8f6c\u6d41\u7a0b&#xff1a; \u5de5\u4f5c\u533a \u2192(git add)\u2192 \u6682\u5b58\u533a \u2192(git commit)\u2192 \u672c\u5730\u4ed3\u5e93<\/p>\n<h4>3. \u57fa\u7840\u547d\u4ee4\u6e05\u5355<\/h4>\n<li>\n<p>git init \u521d\u59cb\u5316\u4ed3\u5e93&#xff0c;\u751f\u6210\u9690\u85cf\u76ee\u5f55 .git<\/p>\n<\/li>\n<li>\n<p>git add [\u6587\u4ef6\u540d] \/ git add . \u5c06\u5de5\u4f5c\u533a\u4fee\u6539\u52a0\u5165\u6682\u5b58\u533a<\/p>\n<\/li>\n<li>\n<p>git commit -m &#034;\u63d0\u4ea4\u6ce8\u91ca&#034; \u6682\u5b58\u533a\u5185\u5bb9\u751f\u6210\u7248\u672c\u5feb\u7167&#xff0c;\u4fdd\u5b58\u5230\u672c\u5730\u4ed3\u5e93<\/p>\n<\/li>\n<li>\n<p>git status \u67e5\u770b\u5f53\u524d\u6587\u4ef6\u72b6\u6001&#xff08;\u672a\u8ddf\u8e2a \/ \u5df2\u4fee\u6539 \/ \u5728\u6682\u5b58\u533a&#xff09;<\/p>\n<\/li>\n<li>\n<p>git log \u67e5\u770b\u5386\u53f2\u63d0\u4ea4\u65e5\u5fd7<\/p>\n<\/li>\n<h4>4. Github \/ Gitee \u4f5c\u7528<\/h4>\n<p>Github\/Gitee \u662f\u8fdc\u7a0b\u4ee3\u7801\u6258\u7ba1\u5e73\u53f0&#xff0c;\u672c\u8d28\u662f\u5b58\u653e Git \u8fdc\u7a0b\u4ed3\u5e93\u3002 \u4f5c\u7528&#xff1a;<\/p>\n<li>\n<p>\u4ee3\u7801\u4e91\u7aef\u5907\u4efd&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u591a\u4eba\u534f\u4f5c\u5f00\u53d1&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u5f00\u6e90\u9879\u76ee\u4ea4\u6d41\u3002<\/p>\n<\/li>\n<p>\u5e38\u7528\u8fdc\u7a0b\u4ea4\u4e92\u6307\u4ee4&#xff1a;<\/p>\n<ul>\n<li>\n<p>git remote add origin \u4ed3\u5e93\u5730\u5740 \u7ed1\u5b9a\u8fdc\u7a0b\u4ed3\u5e93<\/p>\n<\/li>\n<li>\n<p>git push&#xff1a;\u672c\u5730\u7248\u672c\u63a8\u9001\u81f3\u8fdc\u7aef<\/p>\n<\/li>\n<li>\n<p>git pull&#xff1a;\u62c9\u53d6\u8fdc\u7aef\u6700\u65b0\u4ee3\u7801\u5230\u672c\u5730<\/p>\n<\/li>\n<\/ul>\n<h3>\u4e09\u3001\u9762\u8bd5\u5e38\u89c1\u95ee\u9898\u6c47\u603b<\/h3>\n<li>\n<p>\u4e3a\u4ec0\u4e48 printf \u4e0d\u5e26\u6362\u884c\u4e0d\u4f1a\u7acb\u523b\u6253\u5370&#xff1f; stdout \u5728\u7ec8\u7aef\u662f\u884c\u7f13\u51b2&#xff0c;\u6ca1\u6709\\\\n&#xff0c;\u4e0d\u4f1a\u89e6\u53d1\u7f13\u51b2\u533a\u5237\u65b0&#xff0c;\u6570\u636e\u6682\u5b58\u5728\u5185\u5b58\u7f13\u51b2\u533a&#xff1b;\u8fdb\u7a0b\u9000\u51fa\u6216\u8005\u4e3b\u52a8 fflush \u624d\u4f1a\u8f93\u51fa\u3002<\/p>\n<\/li>\n<li>\n<p>stdout \u548c stderr \u533a\u522b&#xff1f; stdout \u884c\u7f13\u51b2&#xff0c;\u7528\u4e8e\u666e\u901a\u4fe1\u606f&#xff1b;stderr \u65e0\u7f13\u51b2&#xff0c;\u4e13\u95e8\u8f93\u51fa\u62a5\u9519&#xff0c;\u4fdd\u8bc1\u9519\u8bef\u4fe1\u606f\u5373\u65f6\u5c55\u793a\u3002<\/p>\n<\/li>\n<li>\n<p>SVN \u548c Git \u6700\u6838\u5fc3\u533a\u522b&#xff1f; SVN \u662f\u4e2d\u5fc3\u5316&#xff1b;Git \u5206\u5e03\u5f0f&#xff0c;\u672c\u5730\u62e5\u6709\u5b8c\u6574\u4ed3\u5e93&#xff0c;\u652f\u6301\u79bb\u7ebf\u63d0\u4ea4\u3002<\/p>\n<\/li>\n<li>\n<p>git add \u548c git commit \u5206\u522b\u5e72\u4e86\u4ec0\u4e48&#xff1f; git add&#xff1a;\u6587\u4ef6\u4ece\u5de5\u4f5c\u533a\u79fb\u52a8\u5230\u6682\u5b58\u533a&#xff1b; git commit&#xff1a;\u628a\u6682\u5b58\u533a\u5185\u6240\u6709\u6539\u52a8\u6253\u5305&#xff0c;\u751f\u6210\u6c38\u4e45\u7248\u672c\u5b58\u5165\u672c\u5730\u4ed3\u5e93\u3002<\/p>\n<\/li>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u7f13\u51b2\u533a&#xff08;Buffer&#xff09;\u8be6\u89e31. \u4ec0\u4e48\u662f\u7f13\u51b2\u533a\u7f13\u51b2\u533a\u672c\u8d28\u5c31\u662f\u5185\u5b58\u4e0a\u7684\u4e00\u5757\u4e34\u65f6\u7a7a\u95f4\u3002 \u64cd\u4f5c\u7cfb\u7edf IO \u64cd\u4f5c&#xff08;\u8bfb\u5199\u663e\u793a\u5668\u3001\u78c1\u76d8\u3001\u7f51\u7edc&#xff09;\u901f\u5ea6\u5f88\u6162&#xff0c;\u5982\u679c\u7a0b\u5e8f\u6bcf\u8f93\u51fa\u4e00\u4e2a\u5b57\u7b26\u5c31\u76f4\u63a5\u8c03\u7528\u7cfb\u7edf\u63a5\u53e3&#xff0c;\u9891\u7e41\u9677\u5165\u5185\u6838\u6001&#xff0c;\u6548\u7387\u6781\u4f4e\u3002 \u7f13\u51b2\u533a\u6838\u5fc3\u4f5c\u7528&#xff1a;\u5408\u5e76\u591a\u6b21 IO \u64cd\u4f5c&#xff0c;\u51cf\u5c11\u7cfb\u7edf\u8c03\u7528\u6b21\u6570&#xff0c;\u63d0\u5347\u6548\u7387\u3002Linux \u4e0b\u9ed8\u8ba4\u6253\u5f00\u4e09\u7c7b\u6807\u51c6\u6d41&#xff1a;stdin&amp;#<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[174,89,58],"topic":[],"class_list":["post-89255","post","type-post","status-publish","format-standard","hentry","category-server","tag-c","tag-git","tag-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux\u4e0bC\u8bed\u8a00\u7f13\u51b2\u533a\u539f\u7406 + Git\u7248\u672c\u63a7\u5236 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/89255.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux\u4e0bC\u8bed\u8a00\u7f13\u51b2\u533a\u539f\u7406 + Git\u7248\u672c\u63a7\u5236 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001\u7f13\u51b2\u533a&#xff08;Buffer&#xff09;\u8be6\u89e31. \u4ec0\u4e48\u662f\u7f13\u51b2\u533a\u7f13\u51b2\u533a\u672c\u8d28\u5c31\u662f\u5185\u5b58\u4e0a\u7684\u4e00\u5757\u4e34\u65f6\u7a7a\u95f4\u3002 \u64cd\u4f5c\u7cfb\u7edf IO \u64cd\u4f5c&#xff08;\u8bfb\u5199\u663e\u793a\u5668\u3001\u78c1\u76d8\u3001\u7f51\u7edc&#xff09;\u901f\u5ea6\u5f88\u6162&#xff0c;\u5982\u679c\u7a0b\u5e8f\u6bcf\u8f93\u51fa\u4e00\u4e2a\u5b57\u7b26\u5c31\u76f4\u63a5\u8c03\u7528\u7cfb\u7edf\u63a5\u53e3&#xff0c;\u9891\u7e41\u9677\u5165\u5185\u6838\u6001&#xff0c;\u6548\u7387\u6781\u4f4e\u3002 \u7f13\u51b2\u533a\u6838\u5fc3\u4f5c\u7528&#xff1a;\u5408\u5e76\u591a\u6b21 IO \u64cd\u4f5c&#xff0c;\u51cf\u5c11\u7cfb\u7edf\u8c03\u7528\u6b21\u6570&#xff0c;\u63d0\u5347\u6548\u7387\u3002Linux \u4e0b\u9ed8\u8ba4\u6253\u5f00\u4e09\u7c7b\u6807\u51c6\u6d41&#xff1a;stdin&amp;#\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/89255.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-02T10:32:27+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/89255.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/89255.html\",\"name\":\"Linux\u4e0bC\u8bed\u8a00\u7f13\u51b2\u533a\u539f\u7406 + Git\u7248\u672c\u63a7\u5236 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-02T10:32:27+00:00\",\"dateModified\":\"2026-08-02T10:32:27+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/89255.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/89255.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/89255.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\u4e0bC\u8bed\u8a00\u7f13\u51b2\u533a\u539f\u7406 + Git\u7248\u672c\u63a7\u5236\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux\u4e0bC\u8bed\u8a00\u7f13\u51b2\u533a\u539f\u7406 + Git\u7248\u672c\u63a7\u5236 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/89255.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux\u4e0bC\u8bed\u8a00\u7f13\u51b2\u533a\u539f\u7406 + Git\u7248\u672c\u63a7\u5236 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e00\u3001\u7f13\u51b2\u533a&#xff08;Buffer&#xff09;\u8be6\u89e31. \u4ec0\u4e48\u662f\u7f13\u51b2\u533a\u7f13\u51b2\u533a\u672c\u8d28\u5c31\u662f\u5185\u5b58\u4e0a\u7684\u4e00\u5757\u4e34\u65f6\u7a7a\u95f4\u3002 \u64cd\u4f5c\u7cfb\u7edf IO \u64cd\u4f5c&#xff08;\u8bfb\u5199\u663e\u793a\u5668\u3001\u78c1\u76d8\u3001\u7f51\u7edc&#xff09;\u901f\u5ea6\u5f88\u6162&#xff0c;\u5982\u679c\u7a0b\u5e8f\u6bcf\u8f93\u51fa\u4e00\u4e2a\u5b57\u7b26\u5c31\u76f4\u63a5\u8c03\u7528\u7cfb\u7edf\u63a5\u53e3&#xff0c;\u9891\u7e41\u9677\u5165\u5185\u6838\u6001&#xff0c;\u6548\u7387\u6781\u4f4e\u3002 \u7f13\u51b2\u533a\u6838\u5fc3\u4f5c\u7528&#xff1a;\u5408\u5e76\u591a\u6b21 IO \u64cd\u4f5c&#xff0c;\u51cf\u5c11\u7cfb\u7edf\u8c03\u7528\u6b21\u6570&#xff0c;\u63d0\u5347\u6548\u7387\u3002Linux \u4e0b\u9ed8\u8ba4\u6253\u5f00\u4e09\u7c7b\u6807\u51c6\u6d41&#xff1a;stdin&amp;#","og_url":"https:\/\/www.wsisp.com\/helps\/89255.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-02T10:32:27+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/89255.html","url":"https:\/\/www.wsisp.com\/helps\/89255.html","name":"Linux\u4e0bC\u8bed\u8a00\u7f13\u51b2\u533a\u539f\u7406 + Git\u7248\u672c\u63a7\u5236 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-02T10:32:27+00:00","dateModified":"2026-08-02T10:32:27+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/89255.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/89255.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/89255.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux\u4e0bC\u8bed\u8a00\u7f13\u51b2\u533a\u539f\u7406 + Git\u7248\u672c\u63a7\u5236"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/89255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=89255"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/89255\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=89255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=89255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=89255"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=89255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}