{"id":5716,"date":"2023-11-30T15:49:39","date_gmt":"2023-11-30T07:49:39","guid":{"rendered":"https:\/\/white-night.club\/?p=5716"},"modified":"2023-11-30T19:19:13","modified_gmt":"2023-11-30T11:19:13","slug":"blog33","status":"publish","type":"post","link":"https:\/\/white-night.club\/index.php\/2023\/11\/30\/blog33\/","title":{"rendered":"Linux\uff1a\u8f93\u5165\u8f93\u51fa\u91cd\u5b9a\u5411"},"content":{"rendered":"\n<p>\u5982\u679c\u547d\u4ee4\u7684\u8f93\u5165\u4e0d\u662f\u6765\u6e90\u4e8e\u952e\u76d8\uff1b\u6216\u8005\u547d\u4ee4\u7684\u7ed3\u679c\u8f93\u51fa\u4e0d\u662f\u5728\u5c4f\u5e55\u4e0a\uff0c\u800c\u662f\u8981\u91cd\u5b9a\u5411\u8f93\u51fa\u5230\u67d0\u4e2a\u6587\u4ef6\uff0c\u90a3\u6211\u4eec\u5c31\u8981\u7528&#8221;&lt;&#8220;\u548c&#8221;>&#8221;\u6765\u8fdb\u884c\u8f93\u5165\u8f93\u51fa\u91cd\u5b9a\u5411\u3002<\/p>\n\n\n\n<p>&lt;\u6307\u5411\u8c01\uff0c\u8c01\u5c31\u662f\u88ab\u8f93\u51fa\u7684\u5bf9\u8c61\u3002\uff08\u8fd9\u8bdd\u600e\u4e48\u542c\u8d77\u6765\u8fd9\u4e48\u602a\u5462\ud83e\udd14\uff09\u3002<\/p>\n\n\n\n<p>\u4e3e\u4e2a\u4f8b\u5b50\uff0ccat\u6307\u4ee4\u3002\u6211\u4eec\u4e00\u822c\u7528cat\u90fd\u662fcat helloworld\uff0c\u5b9e\u9645\u4e0a\u6211\u4eec\u662f\u7701\u7565\u4e86&lt;\u8f93\u51fa\u91cd\u5b9a\u5411\u8fd9\u4e2a\u5b57\u7b26\u800c\u5df2\u3002\u5b8c\u6574\u7684\u6307\u4ee4\u5e94\u8be5\u4e3a\uff1a<\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong><em>cat &lt; helloworld<\/em><\/strong><\/p>\n\n\n\n<p>\u8868\u793a\u7684\u610f\u601d\u662f\uff1a\u5c06helloworld\u6587\u6863\u5185\u7684\u5185\u5bb9\u8f93\u5165\u7ed9cat\u6307\u4ee4\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u4f60\u60f3\u628a\u4e0a\u9762\u8fd9\u4e2acat\u6307\u4ee4\u7684\u7ed3\u679c\u8f93\u51fa\u5230\u53e6\u4e00\u4e2a\u540d\u4e3aoutput\u7684\u6587\u4ef6\uff0c\u90a3\u4f60\u53ef\u4ee5\u7528\u8fd9\u6761\u6307\u4ee4\u3002<\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong><em>cat &lt;helloworld &gt;output<\/em><\/strong><\/p>\n\n\n\n<p>\u9664\u6b64\u4e4b\u5916\uff0c\u8f93\u51fa\u91cd\u5b9a\u5411\u8fd8\u53ef\u4ee5\u5e26\u4e0a\u4e09\u79cd\u53c2\u6570\u3002<\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong><em>cat helloworld 2&gt;error<\/em><\/strong><\/p>\n\n\n\n<p>\u5c06\u6807\u51c6\u9519\u8bef\u8f93\u51fa\u91cd\u5b9a\u5411\u5230error\u6587\u4ef6\u4e2d\u3002<\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong><em>cat helloworld &amp;&gt;error<\/em><\/strong><\/p>\n\n\n\n<p>\u5c06\u6807\u51c6\u8f93\u51fa\u548c\u6807\u51c6\u9519\u8bef\u8f93\u51fa\u90fd\u91cd\u5b9a\u5411\u5230helloworld\u3002<\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong><em>cat helloworld &gt;test 2&gt;&amp;1<\/em><\/strong><\/p>\n\n\n\n<p>\u5c06\u6807\u51c6\u8f93\u51fa\u548c\u6807\u51c6\u9519\u8bef\u8f93\u51fa\u90fd\u91cd\u5b9a\u5411\u5230helloworld\u3002<\/p>\n\n\n\n<p>\u6700\u540e\u4e00\u4e2a\u9700\u8981\u7ec6\u8bf4\u3002\u5177\u4f53\u8fc7\u7a0b\u4e3a\u5148\u5c06\u6807\u51c6\u8f93\u51fa\uff081\uff09\u91cd\u5b9a\u5411\u5230helloworld\u3002\u518d\u5c06\u6807\u51c6\u9519\u8bef\u8f93\u5165\u91cd\u5b9a\u5411\u5230\u6807\u51c6\u8f93\u51fa\uff081\uff09\uff0c\u7531\u4e8e\u6807\u51c6\u8f93\u51fa\u5df2\u7ecf\u91cd\u5b9a\u5411\u5230\u4e86helloworld\u3002\u6240\u4ee5\u5b9e\u9645\u7684\u6548\u679c\u4e3a\u4e3a2&gt;&amp;1&gt;helloworld\u3002<\/p>\n\n\n\n<p>\u518d\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u5047\u8bbe\u67d0\u6587\u4ef6\u5939\u4e0b\u53ea\u6709\u4e00\u4e2aa\u6587\u4ef6\u5939\u3002\u90a3\u4e48\u8f93\u5165<\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong><em>ls a b<\/em><\/strong><\/p>\n\n\n\n<p>\u6b64\u65f6\u8f93\u51fa\u7684\u7ed3\u679c\u65e2\u6709\u6807\u51c6\u8f93\u51fa\uff0c\u53c8\u6709\u6807\u51c6\u9519\u8bef\u8f93\u51fa\u3002<\/p>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u628a\u4e24\u4e2a\u8f93\u51fa\u5206\u522b\u8f93\u51fa\u5230\u4e24\u4e2a\u6587\u4ef6\uff0c\u6bd4\u5982<\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong><em>ls a b 1&gt;ok 2&gt;error<\/em><\/strong><\/p>\n\n\n\n<p>\u4e5f\u53ef\u4ee5\u628a\u8f93\u51fa\u548c\u9519\u8bef\u8f93\u51fa\u90fd\u5199\u5165\u5230\u4e00\u4e2a\u6587\u4ef6\u5939<\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong><em>ls a b &amp;&gt;result<\/em><\/strong><br><strong><em>\u6216  ls a b 1&gt;result 2&gt;&amp;1<\/em><\/strong><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6807\u51c6\u8f93\u5165\/\u6807\u51c6\u8f93\u51fa\/\u6807\u51c6\u9519\u8bef\u8f93\u51fa<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"base","format":"standard","meta":{"footnotes":""},"categories":[14,12],"tags":[70,11],"_links":{"self":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/5716"}],"collection":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/comments?post=5716"}],"version-history":[{"count":0,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/5716\/revisions"}],"wp:attachment":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media?parent=5716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/categories?post=5716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/tags?post=5716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}