{"id":15474,"date":"2023-07-21T20:12:23","date_gmt":"2023-07-21T12:12:23","guid":{"rendered":"https:\/\/www.linuxcool.com\/lxtsdvbjqdsy"},"modified":"2023-07-21T20:12:23","modified_gmt":"2023-07-21T12:12:23","slug":"lxtsdvbjqdsy","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/lxtsdvbjqdsy","title":{"rendered":"Linux\u7cfb\u7edf\u4e0a\u7684vim\u7f16\u8f91\u5668\u7684\u4f7f\u7528\u65b9\u6cd5\u53ca\u4f7f\u7528\u6280\u5de7"},"content":{"rendered":"<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2023\/07\/1689941542632_0.jpg' alt='\u5927\u6570\u636e\u5b66\u4e60\u8def\u7ebf\u56fe' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>vim\u7f16\u8f91\u5668\u662f<a style='color:#0000CC;font-size:16px' href='https:\/\/www.linuxprobe.com\/' target='_blank' rel=\"noopener\">Linux<\/a><a style='color:#0000CC;font-size:16px' href='https:\/\/www.linuxdown.com\/' target='_blank' rel=\"noopener\">\u7cfb\u7edf<\/a>\u4e0a\u6700\u77e5\u540d\u7684\u6587\u672c\/\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u662fvi\u7f16\u8f91\u5668\u7684\u5f3a\u5316\u7248\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5b8c\u6210\u6587\u4ef6\u7684\u521b\u5efa\u548c\u4ee3\u7801\u7684\u7f16\u64b0\u3002\u8bf7\u767b\u9646Linux\u7cfb\u7edf\uff08\u672c\u6559\u7a0b\u5168\u90e8\u7edf\u4e00\u4f7f\u7528hadoop\u7528\u6237\u767b\u5165\uff09\uff0c\u6253\u5f00\u4e00\u4e2a\u7ec8\u7aef\uff0c\u4e4b\u540e\uff0c\u6267\u884c\u4e0b\u8fb9<a style='color:#0000CC;font-size:16px' href='https:\/\/www.linuxcool.com\/' target='_blank' rel=\"noopener\">\u547d\u4ee4<\/a>\u5b8c\u6210vim\u7f16\u8f91\u5668\u7684\u5b89\u88c5\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre><code class=\"bash\"> sudo apt-get install vim\n<\/code><\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u6267\u884c\u524d\u9762\u547d\u4ee4\u4e4b\u540e\uff0c\u5047\u5982\u5c4f\u5e55\u4e0a\u51fa\u73b0\u4fe1\u606f\u8981\u6c42\u8fdb\u884c\u786e\u8ba4\uff0c\u5728\u63d0\u793a\u5904\u8f93\u5165\u201cy\u201d\u5373\u53ef\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2023\/07\/1689941542632_2.jpg' alt='linux\u547d\u4ee4\u884c\u7f16\u8f91\u6587\u4ef6_linux\u547d\u4ee4\u7f16\u8f91\u547d\u4ee4_linux\u7f16\u8f91\u6587\u4ef6\u547d\u4ee4vim' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4e0b\u8fb9\u6f14\u793a\u4e00\u4e2a\u5b9e\u4f8b\u6765\u4e86\u89e3vim\u7f16\u8f91\u5668\u7684\u4f7f\u7528\u65b9\u5f0f\u3002\u5047\u5b9a\u8981\u5728\u201c\/home\/hadoop\/\u201d\u76ee\u5f55\u4e0b\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6word.txt\uff0c\u4e0a\u9762\u5305\u542b\u4e00\u4e9b\u8bcd\u7ec4\u3002\u53ef\u4ee5\u6267\u884c\u4e0b\u8fb9\u547d\u4ee4\u521b\u5efa\u4e00\u4e2aword.txt\u6587\u4ef6\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre><code class=\"bash\">cd ~\nvim word.txt\n<\/code><\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u901a\u8fc7\u524d\u9762\u547d\u4ee4\u5c31\u6253\u5f00\u4e86vim\u7f16\u8f91\u5668\uff0c\u4e4b\u540e\uff0c\u987b\u8981\u6309\u952e\u6572\u6253\u8f93\u5165\u4e00\u4e2a\u82f1\u8bed\u5b57\u6bcdi\uff0c\u6b65\u5165\u7f16\u8f91\u72b6\u6001\u4e4b\u540e\u624d\u4f1a\u66f4\u6539\u5185\u5bb9\uff0c\u8fd9\u65f6\uff0c\u5c31\u53ef\u4ee5\u5411word.txt\u6587\u4ef6\u4e2d\u8f93\u5165\u4e00\u4e9b\u8bcd\u7ec4\u3002\u66f4\u6539\u540elinux\u5c31\u8be5\u8fd9\u4e48\u5b66\uff0c\u987b\u8981\u6309\u6309\u952e\u4e0a\u7684Esc\u952e\u9000\u51favim\u7684\u7f16\u8f91\u72b6\u6001\uff0c\u7136\u540e\u6709\u4ee5\u4e0b\u51e0\u79cd\u9009\u62e9\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\uf06c\u4ece\u6309\u952e\u8f93\u5165\u201c:wq\u201d\u4e09\u4e2a\u82f1\u8bed\u5b57\u6bcd\uff0c\u4e4b\u540e\u56de\u8f66linux\u79fb\u690d\uff0c\u8868\u793a\u4fdd\u5b58\u6587\u4ef6\u5e76\u9000\u51fa\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\uf06c\u4ece\u6309\u952e\u8f93\u5165\u201c:q\u201d\u4e24\u4e2a\u4e2d\u6587\u5b57\u6bcd\uff0c\u4e4b\u540e\u56de\u8f66\uff0c\u8868\u793a\u4e0d\u4fdd\u5b58\u5e76\u9000\u51fa\u3002\u5018\u82e5\u672c\u6b21\u7f16\u8f91\u8fc7\u7a0b\u53ea\u662f\u67e5\u770b\u4e86\u6587\u4ef6\u5185\u5bb9\uff0c\u6ca1\u6709\u5bf9\u6587\u4ef6\u505a\u4efb\u4f55\u66f4\u6539\uff0c\u5219\u53ef\u4ee5\u987a\u5229\u9000\u51fa\u3002\u5e76\u4e14\uff0c\u5047\u5982\u65e9\u5df2\u66f4\u6539\u4e86\u6587\u4ef6\u5185\u5bb9\uff0c\u5219vim\u7f16\u8f91\u5668\u4e0d\u5bb9\u8bb8\u5c31\u8fd9\u6837\u9000\u51fa\uff0c\u4f1a\u7ed9\u51fa\u63d0\u793a\u4fe1\u606f\uff0c\u8fd9\u65f6\uff0c\u8981\u60f3\u4e0d\u4fdd\u5b58\u5c31\u9000\u51favim\u7f16\u8f91\u5668\uff0c\u5c31\u8981\u91c7\u7528\u4e0b\u8fb9\u4e00\u79cd\u5f62\u5f0f\uff0c\u5373\u8f93\u5165\u201c:q!\u201d\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\uf06c\u4ece\u9f20\u6807\u8f93\u5165\u201c:q!\u201d\u4e09\u4e2a\u82f1\u8bed\u5b57\u6bcd\uff0c\u4e4b\u540e\u56de\u8f66\uff0c\u8868\u793a\u4e0d\u4fdd\u5b58\u5e76\u5f3a\u5236\u9000\u51fa\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u8fd9\u513f\u6211\u4eec\u4ece\u9f20\u6807\u8f93\u5165\u201c:wq\u201d\u4e09\u4e2a\u82f1\u8bed\u5b57\u6bcd\uff0c\u4e4b\u540e\u56de\u8f66\uff0c\u8868\u793a\u4fdd\u5b58\u6587\u4ef6\u5e76\u9000\u51favim\u7f16\u8f91\u5668\u3002\u8fd9\u6837<strong>linux\u7f16\u8f91\u6587\u4ef6\u547d\u4ee4vim<\/strong>\uff0c\u5c31\u6210\u529f\u521b\u5efa\u4e86word.txt\u6587\u4ef6\uff0c\u8fd9\u65f6\u4f7f\u7528ls\u547d\u4ee4\u67e5\u770b<strong>linux\u7f16\u8f91\u6587\u4ef6\u547d\u4ee4vim<\/strong>\uff0c\u90fd\u4f1a\u53d1\u89c9\u201c\/home\/hadoop\/\u201d\u76ee\u5f55\u4e0b\u591a\u4e86\u4e00\u4e2aword.txt\u6587\u4ef6\u3002\u5047\u5982\u8981\u67e5\u770bword.txt\u6587\u4ef6\u4e2d\u7684\u5185\u5bb9\uff0c\u53ef\u4ee5\u91c7\u7528\u4e24\u79cd\u65b9\u6cd5\u3002\u7b2c\u4e00\u79cd\u65b9\u6cd5\u662f\uff0c\u4e00\u76f4\u4f7f\u7528vim\u7f16\u8f91\u5668\u6253\u5f00word.txt\u6587\u4ef6\uff0c\u67e5\u770b\u5176\u5185\u5bb9\u3002\u7b2c\u4e8c\u79cd\u65b9\u6cd5\u662f\u4f7f\u7528cat\u547d\u4ee4\uff0c\u8fd9\u4e9b\u65b9\u6cd5\u8981\u6bd4\u524d\u4e00\u79cd\u7b80\u5355\u5f97\u591a\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u8fd9\u513f\u987b\u8981\u5f3a\u8c03\u7684\u662f\uff0c\u5728Linux\u7cfb\u7edf\u4e2d\u4f7f\u7528vim\u7f16\u8f91\u5668\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u65f6\uff0c\u5e76\u4e0d\u662f\u4ee5\u6269\u5145\u540d\u6765\u5206\u8fa8\u6587\u4ef6\u7684\uff0c\u4e0d\u7ba1\u662f\u5426\u6709\u6269\u5145\u540d\uff0c\u90fd\u662f\u751f\u6210\u6587\u672c\u6587\u4ef6\uff0c.txt\u6269\u5145\u540d\u53ea\u662f\u6211\u4eec\u81ea\u5df1\u4eba\u4e3a\u6dfb\u52a0\uff0c\u4fbf\u6377\u81ea\u5df1\u67e5\u770b\u7528\u7684\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u521b\u5efaword.txt\u548cword\u8fd9\u4e24\u4e2a\u6587\u4ef6\uff0c\u5bf9\u4e8eLinux\u7cfb\u7edf\u800c\u8a00\u90fd\u662f\u9ed8\u8ba4\u521b\u5efa\u4e86\u6587\u672c\u7c7b\u578b\u7684\u6587\u4ef6\uff0c\u548c\u662f\u5426\u6709.txt\u6269\u5145\u540d\u6ca1\u6709\u5173\u7cfb\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8bf7\u767b\u5f55Linux\u7cfb\u7edf\uff08\u672c\u6559\u7a0b\u5168\u90e8\u7edf\u4e00\u4f7f\u7528hadoop\u7528\u6237\u767b\u5f55\uff09\uff0c\u6253\u5f00\u4e00\u4e2a\u7ec8\u7aef\uff0c\u7136\u540e\uff0c\u6267\u884c\u4e0b\u9762\u547d\u4ee4\u5b8c\u6210vim\u7f16\u8f91\u5668\u7684\u5b89\u88c5\uff1a\u4e0b\u9762\u6f14\u793a\u4e00\u4e2a\u5b9e\u4f8b\u6765\u4e86\u89e3vim\u7f16\u8f91\u5668\u7684\u4f7f\u7528\u65b9\u6cd5\u3002txt\u6587\u4ef6\uff0c\u8fd9\u65f6\u4f7f\u7528ls\u547d\u4ee4\u67e5\u770b\uff0c\u5c31\u4f1a\u53d1\u73b0\u201c\/home\/hadoop\/\u201d\u76ee\u5f55\u4e0b\u591a\u4e86\u4e00\u4e2aword.\u7b2c\u4e00\u79cd\u65b9\u5f0f\u662f\uff0c\u4ecd\u7136\u4f7f\u7528vim\u7f16\u8f91\u5668\u6253\u5f00word.<\/p>\n","protected":false},"author":1,"featured_media":15475,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[23,247,248,405],"class_list":["post-15474","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledge","tag-lxt","tag-v-2","tag-vml-2","tag-bjq"],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/15474","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=15474"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/15474\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media\/15475"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=15474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=15474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=15474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}