{"id":6872,"date":"2020-04-19T21:56:04","date_gmt":"2020-04-19T13:56:04","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6872"},"modified":"2023-05-01T18:41:16","modified_gmt":"2023-05-01T10:41:16","slug":"red","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/red","title":{"rendered":"red\u547d\u4ee4 &#8211; \u6587\u672c\u7f16\u8f91\u5de5\u5177"},"content":{"rendered":"\n<p>red\u547d\u4ee4\u7684\u529f\u80fd\u662f\u7528\u4e8e\u6587\u672c\u7f16\u8f91\u5de5\u5177\uff0c\u80fd\u591f\u5c06\u6587\u4ef6\u5185\u5bb9\u8bfb\u5165\u7f16\u8f91\u5668\u7f13\u5b58\uff0c\u5bf9\u526f\u672c\u8fdb\u884c\u7f16\u8f91\u64cd\u4f5c\u540e\u518d\u5199\u5165\u56de\u786c\u76d8\u4e2d\u3002\u4e0evi\/vim\u547d\u4ee4\u5f88\u5927\u4e0d\u540c\u70b9\u5728\u4e8ered\u547d\u4ee4\u5728\u7f16\u8f91\u65f6\u65e0\u6cd5\u67e5\u770b\u5230\u6587\u4ef6\u5185\u5bb9\uff0c\u56e0\u6b64\u4e00\u5b9a\u8981\u4ed4\u7ec6\u68c0\u67e5\u8f93\u5165\u4fe1\u606f\u7684\u6b63\u786e\u6027\uff0c\u907f\u514d\u9891\u7e41\u5f80\u8fd4\u4e8e\u7f16\u8f91\u548c\u547d\u4ee4\u884c\u6a21\u5f0f\uff0c\u6d6a\u8d39\u5927\u91cf\u7684\u65f6\u95f4\u3002<\/p>\n\n\n\n<p>\u5f88\u5c11\u6709Linux\u7cfb\u7edf\u8fd0\u7ef4\u4eba\u5458\u4f1a\u76f4\u63a5\u4f7f\u7528red\u547d\u4ee4\u7f16\u8f91\u6587\u672c\u5185\u5bb9\uff0c\u800c\u66f4\u591a\u7684\u662f\u57fa\u4e8eShell\u811a\u672c\u8c03\u7528red\u547d\u4ee4\uff0c\u4ece\u800c\u5bf9\u6307\u5b9a\u6587\u4ef6\u5185\u5bb9\u8fdb\u884c\u51c6\u786e\u5730\u4fee\u6539\u64cd\u4f5c\uff0c\u8fd9\u6837\u5c31\u6bd4vi\/vim\u6709\u4f18\u52bf\u4e86\u3002<\/p>\n\n\n\n<p><strong>\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>red [\u53c2\u6570] \u6587\u4ef6\u540d<\/p>\n\n\n\n<p><strong>\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>i<\/td><td>\u5728\u6700\u540e\u4e00\u884c\u524d\u63d2\u5165\u65b0\u5185\u5bb9<\/td><\/tr><tr><td>o<\/td><td>\u628a\u6700\u540e\u4e00\u884c\u66ff\u6362\u6210\u65b0\u5185\u5bb9<\/td><\/tr><tr><td>q<\/td><td>\u9000\u51fa\u7f16\u8f91\u5668<\/td><\/tr><tr><td>w<\/td><td>\u4fdd\u5b58\u6587\u4ef6\u5185\u5bb9<\/td><\/tr><tr><td>.<\/td><td>\u4f7f\u7528\u547d\u4ee4\u884c\u6a21\u5f0f<\/td><\/tr><tr><td>-G<\/td><td>\u4f7f\u7528\u517c\u5bb9\u6a21\u5f0f<\/td><\/tr><tr><td>-l<\/td><td>\u5931\u8d25\u540e\u4f7f\u75280\u72b6\u6001\u9000\u51fa<\/td><\/tr><tr><td>-p<\/td><td>\u8bbe\u7f6e\u6307\u5b9a\u5b57\u7b26\u4e32\u4f5c\u4e3a\u4ea4\u4e92\u63d0\u793a<\/td><\/tr><tr><td>-v<\/td><td>\u663e\u793a\u6267\u884c\u8fc7\u7a0b\u8be6\u7ec6\u4fe1\u606f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\u53c2\u8003\u793a\u4f8b<\/strong><\/p>\n\n\n\n<p>\u5728\u6307\u5b9a\u6587\u4ef6\u7684\u6700\u540e\u4e00\u884c\u63d2\u5165\u65b0\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# <strong>red File.cfg \n<\/strong>1387<strong>\na\nwelcome to Linuxcool.com                                              \n.\nw\n<\/strong>1412<strong>\nq<\/strong><\/pre>\n\n\n\n<p>\u5728\u6307\u5b9a\u6587\u4ef6\u7684\u6700\u540e\u4e00\u884c\u524d\u63d2\u5165\u65b0\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# <strong>red <strong>File.cfg<\/strong>\n<\/strong>1412<strong>\ni\nVist Linuxprobe.com\n.\nw\n<\/strong>1436<strong>\nq<\/strong><\/pre>\n\n\n\n<p>\u67e5\u770b\u524d\u9762\u4e24\u6761\u547d\u4ee4\u7684\u63d2\u5165\u6548\u679c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# <strong>tail -n 2 <strong>File.cfg <\/strong><\/strong>\nVist Linuxprobe.com\nwelcome to Linuxcool.com\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>red\u547d\u4ee4\u7684\u529f\u80fd\u662f\u7528\u4e8e\u6587\u672c\u7f16\u8f91\u5de5\u5177\uff0c\u80fd\u591f\u5c06\u6587\u4ef6\u5185\u5bb9\u8bfb\u5165\u7f16\u8f91\u5668\u7f13\u5b58\uff0c\u5bf9\u526f\u672c\u8fdb\u884c\u7f16\u8f91\u64cd\u4f5c\u540e\u518d\u5199\u5165\u56de\u786c\u76d8\u4e2d\u3002\u4e0evi\/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-6872","post","type-post","status-publish","format-standard","hentry","category-document"],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6872","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=6872"}],"version-history":[{"count":18,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6872\/revisions"}],"predecessor-version":[{"id":14748,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6872\/revisions\/14748"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}