{"id":6076,"date":"2014-01-10T12:06:06","date_gmt":"2014-01-10T17:06:06","guid":{"rendered":"http:\/\/www.hostdime.com\/blog\/?p=6076"},"modified":"2020-05-07T17:28:11","modified_gmt":"2020-05-07T21:28:11","slug":"nano-ssh","status":"publish","type":"post","link":"https:\/\/www.hostdime.com\/blog\/nano-ssh\/","title":{"rendered":"Tutorial: Using Nano to Modify and Create Files in SSH"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hostdime.com\/blog\/wp-content\/uploads\/2014\/01\/blogtips.jpg\" alt=\"how to use nano for ssh\" width=\"500\" height=\"364\" class=\"aligncenter size-full wp-image-6077\" srcset=\"https:\/\/www.hostdime.com\/blog\/wp-content\/uploads\/2014\/01\/blogtips.jpg 500w, https:\/\/www.hostdime.com\/blog\/wp-content\/uploads\/2014\/01\/blogtips-300x218.jpg 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p>\n<p>This brief tutorial explains how to modify and create files within SSH using the tool Nano. It is incredibly useful for editing existing files and offers a wide range of functionality.<\/p>\n<p><strong>Opening or creation of files:<\/strong><\/p>\n<blockquote><p><em>nano \/filedirectory\/filename<\/em><\/p><\/blockquote>\n<p>Nano is a modeless editor. Once you have opened a file you can type to add text to it. There may be times when you need to turn off line wrap to ensure there are no formatting issues.<\/p>\n<p><strong>To disable wrapping on long text lines:<\/strong><\/p>\n<blockquote><p><em>nano -w \/filedirectory\/filename<\/em><\/p><\/blockquote>\n<p>When you have a file open using nano, there are commands that will assist you in finding, editing, or saving content. Below is a list of commands you can use when editing a file with nano to perform common operations:<\/p>\n<p><strong>To exit:<\/strong><\/p>\n<blockquote><p><em>CTRL+x<\/em><\/p><\/blockquote>\n<p>To save after modification, exit with the above command and enter \u201cy\u201d when prompted.<\/p>\n<p>To cancel any modification, exit with the above command and enter \u201cn\u201d when prompted.<\/p>\n<p>If creating a new file, upon running the above command you will also be prompted for a file name. Enter the desired file name to create the file.<\/p>\n<p><strong>To cut a single line:<\/strong><\/p>\n<blockquote><p><em>CTRL+k<\/em><\/p><\/blockquote>\n<p><strong>To paste a line:<\/strong><\/p>\n<blockquote><p><em>CTRL+u<\/em><\/p><\/blockquote>\n<p><strong>To search for items:<\/strong><\/p>\n<blockquote><p><em>CTRL+w<\/em><\/p><\/blockquote>\n<p><strong>To save without exiting:<\/strong><\/p>\n<blockquote><p><em>CTRL+o<\/em><\/p><\/blockquote>\n<p><strong>Justify current selected paragraph:<\/strong><\/p>\n<blockquote><p><em>CTRL+j<\/em><\/p><\/blockquote>\n<p><strong>Insert a file into the currently selected one:<\/strong><\/p>\n<blockquote><p><em>CTRL+r<\/em><\/p><\/blockquote>\n<p><strong>Move to previous screen:<\/strong><\/p>\n<blockquote><p><em>CTRL+Y<\/em><\/p><\/blockquote>\n<p><strong>Move to next screen:<\/strong><\/p>\n<blockquote><p><em>CTRL + V<\/em><\/p><\/blockquote>\n<p><strong>Display cursor:<\/strong><\/p>\n<blockquote><p><em>CTRL+C<\/em><\/p><\/blockquote>\n<p><strong>Invoke spell checker:<\/strong><\/p>\n<blockquote><p><em>CTRL+t<\/em><\/p><\/blockquote>\n<p>For further commands that can be used when utilizing the nano utility, use the following command to display a full list of features.<\/p>\n<p><strong>To pull up nano help page:<\/strong><\/p>\n<blockquote><p><em>CTRL+g<\/em><\/p><\/blockquote>\n<p>If you are interested in more command line articles like this, check out the <a href=\"http:\/\/hostdime.com\/resources\">HostDime Resources Page<\/a> for more helpful tutorials!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial explains how to modify and create files within SSH using the tool Nano, which is incredibly useful for editing existing files.<\/p>\n","protected":false},"author":13,"featured_media":6077,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-6076","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-misc"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Tutorial: Using Nano to Modify and Create Files in SSH<\/title>\n<meta name=\"description\" content=\"This tutorial explains how to modify and create files within SSH using the tool Nano. It is incredibly useful for editing existing files and offers a wide range of functionality.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hostdime.com\/blog\/nano-ssh\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tutorial: Using Nano to Modify and Create Files in SSH\" \/>\n<meta property=\"og:description\" content=\"This tutorial explains how to modify and create files within SSH using the tool Nano. It is incredibly useful for editing existing files and offers a wide range of functionality.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hostdime.com\/blog\/nano-ssh\/\" \/>\n<meta property=\"og:site_name\" content=\"HostDime Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hostdime\" \/>\n<meta property=\"article:published_time\" content=\"2014-01-10T17:06:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-07T21:28:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.hostdime.com\/blog\/wp-content\/uploads\/2014\/01\/blogtips.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"500\" \/>\n\t<meta property=\"og:image:height\" content=\"364\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jared Smith\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jared Smith\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.hostdime.com\/blog\/nano-ssh\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.hostdime.com\/blog\/nano-ssh\/\"},\"author\":{\"name\":\"Jared Smith\",\"@id\":\"https:\/\/www.hostdime.com\/blog\/#\/schema\/person\/fdc19f9386316cd19f8eebb64a223503\"},\"headline\":\"Tutorial: Using Nano to Modify and Create Files in SSH\",\"datePublished\":\"2014-01-10T17:06:06+00:00\",\"dateModified\":\"2020-05-07T21:28:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.hostdime.com\/blog\/nano-ssh\/\"},\"wordCount\":312,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.hostdime.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.hostdime.com\/blog\/nano-ssh\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.hostdime.com\/blog\/wp-content\/uploads\/2014\/01\/blogtips.jpg\",\"articleSection\":[\"Misc\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.hostdime.com\/blog\/nano-ssh\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.hostdime.com\/blog\/nano-ssh\/\",\"url\":\"https:\/\/www.hostdime.com\/blog\/nano-ssh\/\",\"name\":\"Tutorial: Using Nano to Modify and Create Files in SSH\",\"isPartOf\":{\"@id\":\"https:\/\/www.hostdime.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.hostdime.com\/blog\/nano-ssh\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.hostdime.com\/blog\/nano-ssh\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.hostdime.com\/blog\/wp-content\/uploads\/2014\/01\/blogtips.jpg\",\"datePublished\":\"2014-01-10T17:06:06+00:00\",\"dateModified\":\"2020-05-07T21:28:11+00:00\",\"description\":\"This tutorial explains how to modify and create files within SSH using the tool Nano. It is incredibly useful for editing existing files and offers a wide range of functionality.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.hostdime.com\/blog\/nano-ssh\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.hostdime.com\/blog\/nano-ssh\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hostdime.com\/blog\/nano-ssh\/#primaryimage\",\"url\":\"https:\/\/www.hostdime.com\/blog\/wp-content\/uploads\/2014\/01\/blogtips.jpg\",\"contentUrl\":\"https:\/\/www.hostdime.com\/blog\/wp-content\/uploads\/2014\/01\/blogtips.jpg\",\"width\":500,\"height\":364},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.hostdime.com\/blog\/nano-ssh\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.hostdime.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tutorial: Using Nano to Modify and Create Files in SSH\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.hostdime.com\/blog\/#website\",\"url\":\"https:\/\/www.hostdime.com\/blog\/\",\"name\":\"HostDime Data Center Blog\",\"description\":\"Hyper Edge, Purpose-Built Data Centers\",\"publisher\":{\"@id\":\"https:\/\/www.hostdime.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.hostdime.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.hostdime.com\/blog\/#organization\",\"name\":\"HostDime\",\"url\":\"https:\/\/www.hostdime.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hostdime.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.hostdime.com\/blog\/wp-content\/uploads\/2019\/04\/pldooampldeadoii.png\",\"contentUrl\":\"https:\/\/www.hostdime.com\/blog\/wp-content\/uploads\/2019\/04\/pldooampldeadoii.png\",\"width\":150,\"height\":150,\"caption\":\"HostDime\"},\"image\":{\"@id\":\"https:\/\/www.hostdime.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/hostdime\",\"https:\/\/x.com\/hostdime\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.hostdime.com\/blog\/#\/schema\/person\/fdc19f9386316cd19f8eebb64a223503\",\"name\":\"Jared Smith\",\"description\":\"Jared Smith is HostDime's Director of Marketing and the author of the HostDime Blog. Email Jared for guest blogging opportunities on your website or this one.\",\"sameAs\":[\"http:\/\/hostdime.com\/blog\"],\"url\":\"https:\/\/www.hostdime.com\/blog\/author\/jared-s\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tutorial: Using Nano to Modify and Create Files in SSH","description":"This tutorial explains how to modify and create files within SSH using the tool Nano. It is incredibly useful for editing existing files and offers a wide range of functionality.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hostdime.com\/blog\/nano-ssh\/","og_locale":"en_US","og_type":"article","og_title":"Tutorial: Using Nano to Modify and Create Files in SSH","og_description":"This tutorial explains how to modify and create files within SSH using the tool Nano. It is incredibly useful for editing existing files and offers a wide range of functionality.","og_url":"https:\/\/www.hostdime.com\/blog\/nano-ssh\/","og_site_name":"HostDime Blog","article_publisher":"https:\/\/www.facebook.com\/hostdime","article_published_time":"2014-01-10T17:06:06+00:00","article_modified_time":"2020-05-07T21:28:11+00:00","og_image":[{"width":500,"height":364,"url":"https:\/\/www.hostdime.com\/blog\/wp-content\/uploads\/2014\/01\/blogtips.jpg","type":"image\/jpeg"}],"author":"Jared Smith","twitter_misc":{"Written by":"Jared Smith","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hostdime.com\/blog\/nano-ssh\/#article","isPartOf":{"@id":"https:\/\/www.hostdime.com\/blog\/nano-ssh\/"},"author":{"name":"Jared Smith","@id":"https:\/\/www.hostdime.com\/blog\/#\/schema\/person\/fdc19f9386316cd19f8eebb64a223503"},"headline":"Tutorial: Using Nano to Modify and Create Files in SSH","datePublished":"2014-01-10T17:06:06+00:00","dateModified":"2020-05-07T21:28:11+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hostdime.com\/blog\/nano-ssh\/"},"wordCount":312,"commentCount":0,"publisher":{"@id":"https:\/\/www.hostdime.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hostdime.com\/blog\/nano-ssh\/#primaryimage"},"thumbnailUrl":"https:\/\/www.hostdime.com\/blog\/wp-content\/uploads\/2014\/01\/blogtips.jpg","articleSection":["Misc"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hostdime.com\/blog\/nano-ssh\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hostdime.com\/blog\/nano-ssh\/","url":"https:\/\/www.hostdime.com\/blog\/nano-ssh\/","name":"Tutorial: Using Nano to Modify and Create Files in SSH","isPartOf":{"@id":"https:\/\/www.hostdime.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hostdime.com\/blog\/nano-ssh\/#primaryimage"},"image":{"@id":"https:\/\/www.hostdime.com\/blog\/nano-ssh\/#primaryimage"},"thumbnailUrl":"https:\/\/www.hostdime.com\/blog\/wp-content\/uploads\/2014\/01\/blogtips.jpg","datePublished":"2014-01-10T17:06:06+00:00","dateModified":"2020-05-07T21:28:11+00:00","description":"This tutorial explains how to modify and create files within SSH using the tool Nano. It is incredibly useful for editing existing files and offers a wide range of functionality.","breadcrumb":{"@id":"https:\/\/www.hostdime.com\/blog\/nano-ssh\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hostdime.com\/blog\/nano-ssh\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hostdime.com\/blog\/nano-ssh\/#primaryimage","url":"https:\/\/www.hostdime.com\/blog\/wp-content\/uploads\/2014\/01\/blogtips.jpg","contentUrl":"https:\/\/www.hostdime.com\/blog\/wp-content\/uploads\/2014\/01\/blogtips.jpg","width":500,"height":364},{"@type":"BreadcrumbList","@id":"https:\/\/www.hostdime.com\/blog\/nano-ssh\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hostdime.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Tutorial: Using Nano to Modify and Create Files in SSH"}]},{"@type":"WebSite","@id":"https:\/\/www.hostdime.com\/blog\/#website","url":"https:\/\/www.hostdime.com\/blog\/","name":"HostDime Data Center Blog","description":"Hyper Edge, Purpose-Built Data Centers","publisher":{"@id":"https:\/\/www.hostdime.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hostdime.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hostdime.com\/blog\/#organization","name":"HostDime","url":"https:\/\/www.hostdime.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hostdime.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hostdime.com\/blog\/wp-content\/uploads\/2019\/04\/pldooampldeadoii.png","contentUrl":"https:\/\/www.hostdime.com\/blog\/wp-content\/uploads\/2019\/04\/pldooampldeadoii.png","width":150,"height":150,"caption":"HostDime"},"image":{"@id":"https:\/\/www.hostdime.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hostdime","https:\/\/x.com\/hostdime"]},{"@type":"Person","@id":"https:\/\/www.hostdime.com\/blog\/#\/schema\/person\/fdc19f9386316cd19f8eebb64a223503","name":"Jared Smith","description":"Jared Smith is HostDime's Director of Marketing and the author of the HostDime Blog. Email Jared for guest blogging opportunities on your website or this one.","sameAs":["http:\/\/hostdime.com\/blog"],"url":"https:\/\/www.hostdime.com\/blog\/author\/jared-s\/"}]}},"_links":{"self":[{"href":"https:\/\/www.hostdime.com\/blog\/wp-json\/wp\/v2\/posts\/6076","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostdime.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostdime.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostdime.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostdime.com\/blog\/wp-json\/wp\/v2\/comments?post=6076"}],"version-history":[{"count":1,"href":"https:\/\/www.hostdime.com\/blog\/wp-json\/wp\/v2\/posts\/6076\/revisions"}],"predecessor-version":[{"id":7511,"href":"https:\/\/www.hostdime.com\/blog\/wp-json\/wp\/v2\/posts\/6076\/revisions\/7511"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostdime.com\/blog\/wp-json\/wp\/v2\/media\/6077"}],"wp:attachment":[{"href":"https:\/\/www.hostdime.com\/blog\/wp-json\/wp\/v2\/media?parent=6076"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostdime.com\/blog\/wp-json\/wp\/v2\/categories?post=6076"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostdime.com\/blog\/wp-json\/wp\/v2\/tags?post=6076"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}