{"id":401,"date":"2026-02-05T04:04:26","date_gmt":"2026-02-05T04:04:26","guid":{"rendered":"https:\/\/mitalgoswami.in\/?p=401"},"modified":"2026-02-17T04:37:03","modified_gmt":"2026-02-17T04:37:03","slug":"%f0%9f%93%9d-nano-editor-linux-unix","status":"publish","type":"post","link":"https:\/\/mitalgoswami.in\/?p=401","title":{"rendered":"&#x1f4dd; Nano Editor (Linux \/ Unix)"},"content":{"rendered":"\n<p><strong>Nano<\/strong> is a super simple, beginner-friendly <strong>terminal text editor<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">&#x1f539; How to open nano<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>nano filename\n<\/code><\/pre>\n\n\n\n<p>Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano test.txt\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If <code>test.txt<\/code> exists \u2192 it opens<\/li>\n\n\n\n<li>If not \u2192 nano creates it<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">&#x1f539; Nano screen layout<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Top<\/strong> \u2192 File name<\/li>\n\n\n\n<li><strong>Middle<\/strong> \u2192 Text area (where you type)<\/li>\n\n\n\n<li><strong>Bottom<\/strong> \u2192 Shortcut keys (very helpful!)<\/li>\n<\/ul>\n\n\n\n<p><code>^<\/code> means <strong>Ctrl<\/strong><br>Example: <code>^O<\/code> = <strong>Ctrl + O<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">&#x1f539; Most useful nano commands<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Action<\/th><th>Shortcut<\/th><\/tr><\/thead><tbody><tr><td>Save file<\/td><td><code>Ctrl + O<\/code> \u2192 Enter<\/td><\/tr><tr><td>Exit nano<\/td><td><code>Ctrl + X<\/code><\/td><\/tr><tr><td>Cut line<\/td><td><code>Ctrl + K<\/code><\/td><\/tr><tr><td>Paste<\/td><td><code>Ctrl + U<\/code><\/td><\/tr><tr><td>Search<\/td><td><code>Ctrl + W<\/code><\/td><\/tr><tr><td>Go to line<\/td><td><code>Ctrl + _<\/code><\/td><\/tr><tr><td>Undo<\/td><td><code>Alt + U<\/code><\/td><\/tr><tr><td>Redo<\/td><td><code>Alt + E<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">&#x1f539; Example workflow<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>nano notes.txt\n<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Type your text &#x270d;&#xfe0f;<\/li>\n\n\n\n<li>Press <strong>Ctrl + O<\/strong> \u2192 Enter (save)<\/li>\n\n\n\n<li>Press <strong>Ctrl + X<\/strong> (exit)<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">&#x1f539; Why people like nano<\/h2>\n\n\n\n<p>&#x2705; Easy to learn<br>&#x2705; No modes (unlike vi)<br>&#x2705; Commands always visible<br>&#x2705; Perfect for beginners &amp; quick edits<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nano is a super simple, beginner-friendly terminal text editor. &#x1f539; How to open nano Example: &#x1f539; Nano screen layout ^ means CtrlExample: ^O = Ctrl + O &#x1f539; Most useful nano commands Action Shortcut Save file Ctrl + O \u2192 Enter Exit nano Ctrl + X Cut line Ctrl + K Paste Ctrl + U [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-401","post","type-post","status-publish","format-standard","hentry","category-unix"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/posts\/401","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=401"}],"version-history":[{"count":1,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/posts\/401\/revisions"}],"predecessor-version":[{"id":402,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/posts\/401\/revisions\/402"}],"wp:attachment":[{"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}