{"id":295103,"date":"2024-12-21T12:14:39","date_gmt":"2024-12-21T04:14:39","guid":{"rendered":"https:\/\/lrxjmw.cn\/bjvhgbjqdgny.html"},"modified":"2024-12-21T12:14:39","modified_gmt":"2024-12-21T04:14:39","slug":"bjvhgbjqdgny","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/bjvhgbjqdgny.html","title":{"rendered":"\u6bd4\u8f83vi\u548cgedit\u7f16\u8f91\u5668\u7684\u529f\u80fd\u4e0e\u4f7f\u7528\u65b9\u6cd5\uff0c\u9009\u62e9\u6700\u9002\u5408\u4f60\u7684\u6587\u672c\u7f16\u8f91\u5668"},"content":{"rendered":"

vi\u548cgedit\u7f16\u8f91\u5668<\/p>\n

\u4e00\u3001gedit<\/p>\n

gedit\u662f\u4e00\u4e2aUTF\u68d2\u517c\u5bb9\u7684\u6587\u672c\u7f16\u8f91\u5668\u3002gedit\u547d\u4ee4<\/a>\u662fGNOME\u684c\u9762\u73af\u5883\u7684\u5b98\u65b9\u6587\u672c\u7f16\u8f91\u5668\u3002\u5176\u5b9egedit\u88ab\u8bbe\u8ba1\u4e3a\u7b80\u5316\u548c\u4fbf\u4e8e\u4f7f\u7528\uff0c\u4f46\u5b83\u662f\u4e00\u4e2a\u5f3a\u608d\u7684\u901a\u7528\u6587\u672c\u7f16\u8f91\u5668\u3002\u5b83\u53ef\u4ee5\u62ff\u6765\u521b\u5efa\u548c\u7f16\u8f91\u5404\u7c7b\u6587\u672c\u6587\u4ef6\u3002<\/p>\n

\u5b83\u662f\u7528GTK+\u5199\u7684\uff0c\u6240\u4ee5\u7279\u522b\u597d\u7528\uff0c\u53e5\u578b\u9ad8\u4eae\u597d\uff0c\u53ef\u4ee5\u652f\u6301\u82f1\u6587\uff0c\u652f\u6301\u5305\u62ecgb2312\u548cgbk\u5728\u5185\u7684\u591a\u79cd\u5b57\u7b26\u7f16\u7801\u3002gedit\u6709\u4e00\u4e2a\u7075\u6d3b\u7684\u63d2\u4ef6\u7cfb\u7edf\uff0c\u53ef\u4ee5\u62ff\u6765\u4e3agedit\u672c\u8eab\u52a8\u6001\u6dfb\u52a0\u65b0\u7684\u4e2d\u7ea7\u529f\u80fd\u3002<\/p>\n

\u4f7f\u7528\u65b9\u6cd5\uff1agedit\u6587\u4ef6\u540d<\/p>\n

\u5982\uff1agedittext.txt<\/p>\n

\u4fdd\u5b58\u547d\u4ee4ewfmgr_\u4fdd\u5b58\u547d\u4ee4linux_linux vi\u547d\u4ee4 \u4fdd\u5b58<\/p>\n

\u6b64\u65f6\u7cfb\u7edf\u4f1a\u624b\u52a8\u5f39\u51fa\u7f16\u8f91\u5668\u7684\u7f16\u8f91\u7a97\u53e3linux vi\u547d\u4ee4 \u4fdd\u5b58<\/strong>\uff0c\u53ef\u4ee5\u8fdb\u884c\u5bf9\u5e94\u7684\u6587\u6863\u7f16\u8f91\uff1a<\/p>\n

1<\/p>\n

\u6b64\u65b9\u6cd5\u8fdb\u884c\u6587\u6863\u7f16\u8f91\u4fbf\u6377\u7075\u6d3b\uff0c\u50cfwindows\u4e0b\u7684Notepad\u7a0b\u5e8f\uff0c\u5b66\u4e60\u6210\u672c\u51e0\u4e4e\u6ca1\u6709\uff0c\u5047\u5982linux\u6709\u684c\u9762\u73af\u5883\uff0c\u53ef\u4ee5\u4f7f\u7528\u3002\u5e76\u4e14\u6ca1\u6709\u684c\u9762\u73af\u5883\u7684\u8bdd\uff0cvi\u6216\u5219vim\u662f\u6bd4\u8f83\u9002\u5b9c\u7ec8\u7aef\u4f7f\u7528\u7684\u7f16\u8f91\u5668\u3002<\/p>\n

\u4e8c\u3001vi<\/p>\n

vi\u662f\u4e00\u4e2a\u7279\u6b8a\u7684\u547d\u4ee4\uff0c\u4e5f\u4e0d\u5149\u662f\u547d\u4ee4\u8fd8\u662fLinux<\/a>\u4e0b\u7684\u7f16\u8f91\u5668\u3002vi\u547d\u4ee4\u662fLinux<\/a>\u4e0b\u5168\u5c4f\u5e55\u6587\u672c\u7f16\u8f91\uff0cvi\u7f16\u8f91\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u7f16\u8f91\u529f\u80fd\u3002\u8fd9\u4e2a\u7f16\u8f91\u5668\u975e\u5e38\u72ed\u5c0flinux vi\u547d\u4ee4 \u4fdd\u5b58<\/strong>\uff0c\u5bf9\u521d\u5b66\u8005\u5f88\u4e0d\u53cb\u597d\u3002\u5e76\u4e14\u7531\u4e8eLinux\u7684vi\u7f16\u8f91\u5668\u4f5c\u7528\u5341\u5206\u5927\uff0c\u5c24\u5176\u662f\u5728\u914d\u7f6e\u5404\u7c7b\u670d\u52a1\u5668\u65f6\u66f4\u6539\u914d\u7f6e\u6587\u4ef6\u975e\u5e38\u6709\u7528\u3002<\/p>\n

vi\u7f16\u8f91\u5668\u67093\u79cd\u6a21\u5f0f\uff1a\u547d\u4ee4\u884c\u6a21\u5f0f\u3001\u7f16\u8f91\u6a21\u5f0f\u3001\u672b\u884c\u6a21\u5f0f\u3002\u628a\u63e1\u8fd9\u4e09\u79cd\u6a21\u5f0f\u975e\u5e38\u91cd\u8981\uff1a<\/p>\n

1\u3001\u4e00\u822c\u6307\u4ee4\u6a21\u5f0f\uff1a<\/p>\n

\u4fdd\u5b58\u547d\u4ee4linux_linux vi\u547d\u4ee4 \u4fdd\u5b58_\u4fdd\u5b58\u547d\u4ee4ewfmgr<\/p>\n

vi\u542f\u52a8\u540e\u9ed8\u8ba4\u6b65\u5165\u7684\u662f\u547d\u4ee4\u884c\u6a21\u5f0f\u3002\u5728\u8fd9\u4e2a\u6a21\u5f0f\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4e0a\u4e0b\u5de6\u53f3\u952e\u76d8\u6765\u8054\u901a\u5149\u6807\uff0c\u53ef\u4ee5\u4f7f\u7528\u5220\u6389\u5b57\u7b26\u6216\u5219\u5220\u6389\u6574\u884c\u6765\u5904\u7406\u6587\u4ef6\u5185\u5bb9\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528\u590d\u5236\u3001\u7c98\u8d34\u6765\u5904\u7406\u4f60\u7684\u6587\u4ef6\u6570\u636e\u3002<\/p>\n

\u4ece\u8fd9\u4e2a\u6a21\u5f0f\u4f7f\u7528\u547d\u4ee4\u53ef\u4ee5\u5207\u6362\u5230\u53e6\u5916\u4e24\u79cd\u6a21\u5f0f\uff0c\u540c\u65f6\u65e0\u8bba\u5728\u4efb\u4f55\u6a21\u5f0f\u4e0b\u53ea\u8981\u6309\u4e00\u4e0b[Esc]\u952e\u90fd\u53ef\u4ee5\u8fd4\u56de\u901a\u5e38\u6a21\u5f0f\u3002<\/p>\n

\u5728\u901a\u5e38\u6a21\u5f0f\u4e2d\u8f93\u5165i,I,o,O,a,A,r,R\u7b49\u4efb\u4f55\u4e00\u4e2a\u5b57\u6bcd\u4ee5\u540e\u5373\u53ef\u6b65\u5165\u7f16\u8f91\u6a21\u5f0f\uff0c\u8fdb\u884c\u6587\u6863\u7f16\u8f91\u3002<\/p>\n

2\u3001\u7f16\u8f91\u6a21\u5f0f\uff1a<\/p>\n

\u5728\u8fd9\u4e2a\u6a21\u5f0f\u4e2d\u6211\u4eec\u53ef\u4ee5\u7f16\u8f91\u3001\u4fee\u6539\u3001\u8f93\u5165\u7b49\u7f16\u8f91\u5de5\u4f5c\uff0c\u5728\u7f16\u8f91\u5668\u6700\u540e\u4e00\u884c\u663e\u793a\u4e00\u4e2a\u201c\u2013INSERT\u2013\u201d\u6807\u5fd7\u7740vi\u6b65\u5165\u4e86\u7f16\u8f91\u6a21\u5f0f\u3002\u5f53\u6211\u4eec\u5b8c\u6210\u66f4\u6539\u8f93\u5165\u7b49\u64cd\u4f5c\u7684\u65f6\u4faf\u6211\u4eec\u987b\u8981\u4fdd\u5b58\u6587\u4ef6\uff0c\u8fd9\u65f6\u6211\u4eec\u987b\u8981\u5148\u8fd4\u56de\u547d\u4ee4\u6a21\u5f0f\uff0c\u518d\u6b65\u5165\u672b\u884c\u6a21\u5f0f\u4fdd\u5b58\u3002<\/p>\n

3\u3001\u672b\u884c\u6a21\u5f0f\uff1a<\/p>\n

\u4fdd\u5b58\u547d\u4ee4linux_linux vi\u547d\u4ee4 \u4fdd\u5b58_\u4fdd\u5b58\u547d\u4ee4ewfmgr<\/p>\n

\u8be5\u6a21\u5f0f\u4e2d\u53ef\u4ee5\u5c06\u6587\u4ef6\u4fdd\u5b58\u6216\u9000\u51favi\uff0c\u4e5f\u53ef\u4ee5\u8bbe\u7f6e\u7f16\u8f91\u73af\u5883\uff0c\u5982\u627e\u5bfb\u5b57\u7b26\u4e32\u3001\u5217\u51fa\u884c\u53f7\u2026\u7b49\u3002<\/p>\n

\u5728\u7f16\u8f91\u6a21\u5f0f\u8f93\u5165\u201c\uff1a\u201d\u5373\u53ef\u6b65\u5165\u8be5\u6a21\u5f0f\uff0c\u5728\u672b\u884c\u6a21\u5f0f\u4e2d\u6709\u5f88\u591a\u597d\u7528\u7684\u547d\u4ee4\uff0c\u5982\u4e0b\u6240\u793a\u3002<\/p>\n

:w\u4fdd\u5b58\u6587\u4ef6\u4f46\u4e0d\u9000\u51favi<\/p>\n

:wfile\u5c06\u66f4\u6539\u53e6\u5916\u4fdd\u5b58\u5230file\u4e2d\u5d4c\u5165\u5f0flinux\uff0c\u4e0d\u9000\u51favi<\/p>\n

:w!\u5f3a\u5236\u4fdd\u5b58\uff0c\u4e0d\u9000\u51favi<\/p>\n

:wq\u4fdd\u5b58\u6587\u4ef6\u5e76\u9000\u51favi<\/p>\n

\u4fdd\u5b58\u547d\u4ee4ewfmgr_linux vi\u547d\u4ee4 \u4fdd\u5b58_\u4fdd\u5b58\u547d\u4ee4linux<\/p>\n

:wq!\u5f3a\u5236\u4fdd\u5b58\u6587\u4ef6,\u5e76\u9000\u51favi<\/p>\n

q:\u4e0d\u4fdd\u5b58\u6587\u4ef6,\u9000\u51favi:<\/p>\n

q!\u4e0d\u4fdd\u5b58\u6587\u4ef6\uff0c\u5f3a\u5236\u9000\u51favi<\/p>\n

:e!\u5c06\u820d\u5f03\u6240\u6709\u66f4\u6539\uff0c\u4ece\u5148\u524d\u4fdd\u5b58\u6587\u4ef6\u5f00\u59cb\u518d\u7f16\u8f91<\/p>\n

2.1vi\u7684\u57fa\u672c\u64cd\u4f5c<\/p>\n

3<\/p>\n

linux vi\u547d\u4ee4 \u4fdd\u5b58_\u4fdd\u5b58\u547d\u4ee4ewfmgr_\u4fdd\u5b58\u547d\u4ee4linux<\/p>\n

\u7f16\u8f91\u5e76\u4fdd\u5b58\u9000\u51fa\u7f16\u8f91\u7684\u8fc7\u7a0b\u793a\u4f8b\uff1a<\/p>\n

vitext.txt\u6b65\u5165\u547d\u4ee4\u6a21\u5f0f<\/p>\n

\u8f93\u5165\u547d\u4ee4\uff1ai\u6b65\u5165\u8f93\u5165\u6a21\u5f0f<\/p>\n

\u66f4\u6539\u5b8c\u6210\u540e\uff0c\u6309ESC\u952e\u8fd4\u56de\u547d\u4ee4\u6a21\u5f0f<\/p>\n

\u547d\u4ee4\u6a21\u5f0f\u8f93\u5165\u201c\uff1a\u201dlinux\u7cfb\u7edf\u5165\u95e8\u5b66\u4e60\uff0c\u6b65\u5165\u672b\u884c\u6a21\u5f0f\uff0c\u4f7f\u7528\u4e0a\u8ff0\u547d\u4ee4\u4fdd\u5b58\u6587\u4ef6<\/p>\n","protected":false},"excerpt":{"rendered":"

gedit\u662f\u4e00\u4e2aUTF\u68d2\u517c\u5bb9\u7684\u6587\u672c\u7f16\u8f91\u5668\u3002gedit\u547d\u4ee4\u662fGNOME\u684c\u9762\u73af\u5883\u7684\u5b98\u65b9\u6587\u672c\u7f16\u8f91\u5668\u3002\u5b83\u53ef\u4ee5\u7528\u6765\u521b\u5efa\u548c\u7f16\u8f91\u5404\u79cd\u6587\u672c\u6587\u4ef6\u3002\u4fdd\u5b58\u6587\u4ef6\u4f46\u4e0d\u9000\u51favifile\u5c06\u4fee\u6539\u53e6\u5916\u4fdd\u5b58\u5230file\u4e2d\uff0c\u4e0d\u9000\u51favi\u4fdd\u5b58\u6587\u4ef6\u5e76\u9000\u51favi\u4e0d\u4fdd\u5b58\u6587\u4ef6,\u9000\u51favi:\u5c06\u653e\u5f03\u6240\u6709\u4fee\u6539\uff0c\u4ece\u4e0a\u6b21\u4fdd\u5b58\u6587\u4ef6\u5f00\u59cb\u518d\u7f16\u8f91<\/p>\n","protected":false},"author":1,"featured_media":295104,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[109,3471,5066,5076,5075],"class_list":["post-295103","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-linux","tag-vbjq-2","tag-szms","tag-wjbc","tag-zdbjq"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/295103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=295103"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/295103\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/295104"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=295103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=295103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=295103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}