{"id":6492,"date":"2020-01-21T11:27:15","date_gmt":"2020-01-21T03:27:15","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6492"},"modified":"2020-01-21T16:46:40","modified_gmt":"2020-01-21T08:46:40","slug":"nano","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/nano","title":{"rendered":"nano\u547d\u4ee4 – \u5b57\u7b26\u7ec8\u7aef\u6587\u672c\u7f16\u8f91\u5668"},"content":{"rendered":"\n

nano\u662f\u4e00\u4e2a\u5b57\u7b26\u7ec8\u7aef\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u6709\u70b9\u50cfDOS\u4e0b\u7684editor\u7a0b\u5e8f\u3002\u5b83\u6bd4vi\/vim\u8981\u7b80\u5355\u5f97\u591a\uff0c\u6bd4\u8f83\u9002\u5408Linux\u521d\u5b66\u8005\u4f7f\u7528\u3002\u67d0\u4e9bLinux\u53d1\u884c\u7248\u7684\u9ed8\u8ba4\u7f16\u8f91\u5668\u5c31\u662fnano\u3002<\/p>\n\n\n\n

nano\u547d\u4ee4\u53ef\u4ee5\u6253\u5f00\u6307\u5b9a\u6587\u4ef6\u8fdb\u884c\u7f16\u8f91\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u5b83\u4f1a\u81ea\u52a8\u65ad\u884c\uff0c\u5373\u5728\u4e00\u884c\u4e2d\u8f93\u5165\u8fc7\u957f\u7684\u5185\u5bb9\u65f6\u81ea\u52a8\u62c6\u5206\u6210\u51e0\u884c\uff0c\u4f46\u7528\u8fd9\u79cd\u65b9\u5f0f\u6765\u5904\u7406\u67d0\u4e9b\u6587\u4ef6\u53ef\u80fd\u4f1a\u5e26\u6765\u95ee\u9898\uff0c\u6bd4\u5982Linux\u7cfb\u7edf\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u81ea\u52a8\u65ad\u884c\u5c31\u4f1a\u4f7f\u672c\u6765\u53ea\u80fd\u5199\u5728\u4e00\u884c\u4e0a\u7684\u5185\u5bb9\u6298\u65ad\u6210\u591a\u884c\u4e86\uff0c\u6709\u53ef\u80fd\u9020\u6210\u7cfb\u7edf\u4e0d\u7075\u4e86\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u907f\u514d\u8fd9\u79cd\u60c5\u51b5\u51fa\u73b0\uff0c\u5c31\u52a0\u4e0a-w<\/code>\u9009\u9879\u5427\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong> nano [\u53c2\u6570] [\u6587\u4ef6]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-A<\/td>\u542f\u7528\u667a\u80fdHOME\u952e <\/td><\/tr>
-B<\/td>\u50a8\u5b58\u65e2\u6709\u6587\u4ef6\u7684\u5907\u4efd <\/td><\/tr>
-D<\/td>\u7528\u7c97\u4f53\u66ff\u4ee3\u989c\u8272\u53cd\u8f6c <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u6253\u5f00\u6216\u65b0\u5efa\u6587\u4ef6\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# nano test.txt<\/pre>\n\n\n\n

\u7981\u7528\u81ea\u52a8\u6362\u884c\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# nano -w \/etc\/fstab <\/pre>\n\n\n\n

\u4fdd\u5b58\u6240\u505a\u7684\u4fee\u6539\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# Ctrl+O<\/pre>\n\n\n\n

\u8981\u526a\u5207\u4e00\u6574\u884c\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# Ctrl+K<\/pre>\n\n\n\n

\u7c98\u8d34\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# Ctrl+U<\/pre>\n","protected":false},"excerpt":{"rendered":"

nano\u662f\u4e00\u4e2a\u5b57\u7b26\u7ec8\u7aef\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u6709\u70b9\u50cfDOS\u4e0b\u7684editor\u7a0b\u5e8f\u3002\u5b83\u6bd4vi\/vim\u8981\u7b80\u5355\u5f97\u591a\uff0c\u6bd4\u8f83\u9002\u5408Li […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6492"}],"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=6492"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6492\/revisions"}],"predecessor-version":[{"id":6559,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6492\/revisions\/6559"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}