{"id":208,"date":"2007-01-09T14:47:00","date_gmt":"2007-01-09T14:47:00","guid":{"rendered":"https:\/\/ahm.basfinans.com\/index.php\/2007\/01\/09\/nice-linux-console-editor-nano\/"},"modified":"2007-01-09T14:47:00","modified_gmt":"2007-01-09T14:47:00","slug":"nice-linux-console-editor-nano","status":"publish","type":"post","link":"https:\/\/ahm.basfinans.com\/index.php\/2007\/01\/09\/nice-linux-console-editor-nano\/","title":{"rendered":"Nice Linux Console Editor, nano!"},"content":{"rendered":"<p><span><\/p>\n<p><a href=\"http:\/\/1.bp.blogspot.com\/_MWBL1bjt7-k\/RaJpyDroR4I\/AAAAAAAAAFE\/Ehc8xsBeMos\/s1600-h\/nano.PNG\"><img decoding=\"async\" style=\"margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;\" src=\"http:\/\/1.bp.blogspot.com\/_MWBL1bjt7-k\/RaJpyDroR4I\/AAAAAAAAAFE\/Ehc8xsBeMos\/s320\/nano.PNG\" alt=\"\" id=\"BLOGGER_PHOTO_ID_5017689243546830722\" border=\"0\" \/><\/a><br \/>When I try to be familiar to command line, I always need a simple and good editor, of course vi is great but I always find myself unable to save the opened file or save my changes, I always forget the shortcut keys, I find a very good editor called <a href=\"http:\/\/www.nano-editor.org\/\">nano<\/a>. nano has all basic operations of opening, editing and saving your changes, what is really cool is the status bar has all necessary shortcuts, have a look at the attached image.<\/p>\n<div lang=\"x-unicode\">I am using nano on <a href=\"http:\/\/www.ubuntu.com\/\">Ubuntu <\/a>(it is installed by default), also I use it on Cygwin, it is not installed by default there so I installed it manually. So now I enjoy editing files from the console, no more suffering \ud83d\ude42<\/p>\n<p>To make nano my default editor instead of vi, edit your .bash_profile<\/p>\n<p>$<i>nano ~\/.bash_profile<\/i><\/p>\n<p>Scroll to the end of file using Page-Down and add the line:<br \/><i>export EDITOR=nano<\/i><\/p>\n<p>Congratulation, nano will make your life much easier, have a look at nano website: <a href=\"http:\/\/www.nano-editor.org\/\">http:\/\/www.nano-editor.org\/<\/a><\/p>\n<p><\/div>\n<p><\/span><\/p>\n<div>From ahm507.blogspot.com<\/div>\n","protected":false},"excerpt":{"rendered":"<p>When I try to be familiar to command line, I always need a simple and good editor, of course vi is great but I always find myself unable to save the opened file or save my changes, I always forget the shortcut keys, I find a very good editor called nano. nano has all basic [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/ahm.basfinans.com\/index.php\/wp-json\/wp\/v2\/posts\/208"}],"collection":[{"href":"https:\/\/ahm.basfinans.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahm.basfinans.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahm.basfinans.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ahm.basfinans.com\/index.php\/wp-json\/wp\/v2\/comments?post=208"}],"version-history":[{"count":0,"href":"https:\/\/ahm.basfinans.com\/index.php\/wp-json\/wp\/v2\/posts\/208\/revisions"}],"wp:attachment":[{"href":"https:\/\/ahm.basfinans.com\/index.php\/wp-json\/wp\/v2\/media?parent=208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahm.basfinans.com\/index.php\/wp-json\/wp\/v2\/categories?post=208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahm.basfinans.com\/index.php\/wp-json\/wp\/v2\/tags?post=208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}