{"id":77,"date":"2021-08-11T02:32:00","date_gmt":"2021-08-11T06:32:00","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2011\/12\/08\/how-to-edit-files-using-nano\/"},"modified":"2021-11-04T15:59:48","modified_gmt":"2021-11-04T19:59:48","slug":"how-to-edit-files-using-nano","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/","title":{"rendered":"How to Edit &#038; Create a File in SSH Using Nano"},"content":{"rendered":"<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"538\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/Learn-How-to-Edit-Create-a-File-in-SSH-Using-Nano-1024x538.png\" alt=\"Learn How to Edit &amp; Create a File in SSH Using Nano\" class=\"wp-image-90074\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/Learn-How-to-Edit-Create-a-File-in-SSH-Using-Nano-1024x538.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/Learn-How-to-Edit-Create-a-File-in-SSH-Using-Nano-300x158.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/Learn-How-to-Edit-Create-a-File-in-SSH-Using-Nano-768x403.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/Learn-How-to-Edit-Create-a-File-in-SSH-Using-Nano.png 1200w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<p>If you are using the linux command line, there are several programs for you to use to edit files in SSH. This is a convenient way to modify files since you can quickly change them in terminal without using a separate text editor.<\/p>\n\n\n\n<p>Here at InMotion Hosting, our System Administration team primarily uses programs called nano and vi. Vi is a very sophisticated program with somewhat of a high learning curve. Because of this, we\u2019re going to show you how to edit files using the nano SSH editor. The nano editor should be included with all major versions of Linux and Unix.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"#create\">Create a File in SSH<\/a><\/li><li><a href=\"#edit\">Edit File in SSH<\/a><\/li><li><a href=\"#save-exit\">How to Save &amp; Exit Nano<\/a><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create\">Create a File in SSH<\/h2>\n\n\n\n<ol class=\"article_list wp-block-list\"><li>Open a terminal or <a href=\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-login-ssh\/\">connect to your server vis SSH<\/a>.<\/li><li>Use the cd command to change to the directory you want to create the file in. In this example, I\u2019m creating a file in the public_html folder.<pre>cd public_html<\/pre><\/li><li>Run the following command and replace example.html with the name of the file you want to create.<pre>nano example.html<\/pre><\/li><li>The nano editor will then open up the file and you can begin entering text.<br><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"189\" class=\"wp-image-89707\" style=\"width: 750px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/edit-create-file-ssh.png\" alt=\"Creating a File via SSH with Nano\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/edit-create-file-ssh.png 1645w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/edit-create-file-ssh-300x76.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/edit-create-file-ssh-1024x258.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/edit-create-file-ssh-768x193.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/edit-create-file-ssh-1536x387.png 1536w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/li><li>Once you have finished editing click <strong>Ctrl+O<\/strong> then the <strong>Enter<\/strong> key to save and create the file.<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"edit\">Edit File in SSH<\/h2>\n\n\n\n<p>In this section, we\u2019ll walk you through the process of editing a file via SSH using nano.<\/p>\n\n\n\n<ol class=\"article_list wp-block-list\"><li>When editing files with nano, the first thing you\u2019ll need to do is <a href=\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-login-ssh\/\">connect to your server via SSH<\/a>.<\/li><li>We\u2019re currently logged in, so let\u2019s run \u201cpwd\u201d command to see what directory we\u2019re in<br><pre>pwd<\/pre><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"146\" class=\"wp-image-82464\" style=\"width: 750px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/12\/print-working-directory.png\" alt=\"Edit File in SSH - pwd\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/12\/print-working-directory.png 698w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/12\/print-working-directory-300x58.png 300w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><br><\/li><li>Now we\u2019ll run the \u201cls\u201d command to see what files are in this directory.<br><pre>ls<\/pre><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"125\" class=\"wp-image-82463\" style=\"width: 750px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/12\/edit-file-in-ssh-ls.png\" alt=\"Edit File in SSH - ls Command\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/12\/edit-file-in-ssh-ls.png 813w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/12\/edit-file-in-ssh-ls-300x50.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/12\/edit-file-in-ssh-ls-768x128.png 768w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><br><\/li><li>As you can see, we\u2019re in the testa folder and there are currently three files: file1.txt, file2.txt, and file3.txt. If we wanted to edit file2.txt using nano, enter the following command:<br><pre>nano file2.txt<\/pre>After running this command, the nano file editor will open and load the contents of file2.txt.<br><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"408\" class=\"wp-image-88509\" style=\"width: 750px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/editing-file-in-nano.png\" alt=\"Editing a File in Nano\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/editing-file-in-nano.png 1919w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/editing-file-in-nano-300x163.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/editing-file-in-nano-1024x557.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/editing-file-in-nano-768x418.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/editing-file-in-nano-1536x836.png 1536w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><br><br>What you\u2019re looking at above is me editing a file using nano. The top line shows the version of nano you\u2019re using and the name of the file you\u2019re editing. <br><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"119\" class=\"wp-image-88510\" style=\"width: 750px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/nano-top.png\" alt=\"Top of the Nano Editor\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/nano-top.png 1920w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/nano-top-300x48.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/nano-top-1024x163.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/nano-top-768x122.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/nano-top-1536x244.png 1536w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><br><br>The bottom part of the screen includes all of the commands that you can run. <br>You can then run the ls command to view the new file.<img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"91\" class=\"wp-image-88511\" style=\"width: 750px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/nano-bottom.png\" alt=\"Bottom of the Nano Editor\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/nano-bottom.png 1919w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/nano-bottom-300x36.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/nano-bottom-1024x124.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/nano-bottom-768x93.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/nano-bottom-1536x186.png 1536w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><br><br>You can move the cursor around with your keyboard arrows, but the mouse will not work in the nano editor. Here I am deleting a line of text in the file.<br><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"239\" class=\"wp-image-88512\" style=\"width: 750px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/cursor.png\" alt=\"View of the Cursor in Nano\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/cursor.png 1482w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/cursor-300x96.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/cursor-1024x326.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/cursor-768x245.png 768w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><br><\/li><\/ol>\n\n\n\n<p>So what do you do now? Start editing the file! You can edit the file as you would using any other editor, except you don\u2019t have the option to use your mouse to point and click on items.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"save-exit\">How to Save &amp; Exit Nano<\/h2>\n\n\n\n<p>The commands at the bottom of the nano page are executed by holding down Ctrl on your keyboard followed by the letter listed. Here are the steps for saving a file and exiting the nano editor.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Save File in Nano<\/strong><\/h3>\n\n\n\n<ul class=\"article_list wp-block-list\"><li>To save the file (referred to as \u201cWriteOut\u201d), hold <strong>Ctrl + O <\/strong>on your keyboard. <br><pre>Ctrl + O<\/pre><\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Exit Nano<\/strong><\/h3>\n\n\n\n<ul class=\"article_list wp-block-list\"><li>When you\u2019re ready to exit nano, hold <strong>Ctrl + X <\/strong>and you will be exited from the application.<br><pre>Ctrl + X<\/pre><\/li><\/ul>\n\n\n\n<p>Congratulations, now you know how to edit a file in SSH using nano, as well as how to save and exit. Check out our <a href=\"https:\/\/www.inmotionhosting.com\/support\/server\/\">Server<\/a> section for more helpful tutorials to help you manage your environment.<\/p>\n\n\n<div class=\"jumbotron\"><p>No matter if you're a developer, system administrator, or simply a fan of SSH and command line, InMotion's <a href=\"https:\/\/www.inmotionhosting.com\/cloud-vps\">Cloud Hosting plans<\/a> provide a fast, scalable environment that is budget-friendly.<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>If you are using the linux command line, there are several programs for you to use to edit files in SSH. This is a convenient way to modify files since you can quickly change them in terminal without using a separate text editor. Here at InMotion Hosting, our System Administration team primarily uses programs called<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/\"> Read More ><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4307],"tags":[],"class_list":["post-77","post","type-post","status-publish","format-standard","hentry","category-ssh"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Edit File in SSH Using Nano Explained<\/title>\n<meta name=\"description\" content=\"Learn how to edit files using nano via SSH.\" \/>\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.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Edit File in SSH Using Nano Explained\" \/>\n<meta property=\"og:description\" content=\"Learn how to edit files using nano via SSH.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-11T06:32:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-04T19:59:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/How-to-Edit-File-in-SSH-Using-Nano.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5fbfcaed32a2672fb83ab312f5b7237b\"},\"headline\":\"How to Edit &#038; Create a File in SSH Using Nano\",\"datePublished\":\"2021-08-11T06:32:00+00:00\",\"dateModified\":\"2021-11-04T19:59:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/\"},\"wordCount\":600,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/Learn-How-to-Edit-Create-a-File-in-SSH-Using-Nano-1024x538.png\",\"articleSection\":[\"SSH and Root Access\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/\",\"name\":\"How to Edit File in SSH Using Nano Explained\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/Learn-How-to-Edit-Create-a-File-in-SSH-Using-Nano-1024x538.png\",\"datePublished\":\"2021-08-11T06:32:00+00:00\",\"dateModified\":\"2021-11-04T19:59:48+00:00\",\"description\":\"Learn how to edit files using nano via SSH.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/Learn-How-to-Edit-Create-a-File-in-SSH-Using-Nano.png\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/Learn-How-to-Edit-Create-a-File-in-SSH-Using-Nano.png\",\"width\":1200,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Edit &#038; Create a File in SSH Using Nano\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5fbfcaed32a2672fb83ab312f5b7237b\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/john-paul\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Edit File in SSH Using Nano Explained","description":"Learn how to edit files using nano via SSH.","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.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/","og_locale":"en_US","og_type":"article","og_title":"How to Edit File in SSH Using Nano Explained","og_description":"Learn how to edit files using nano via SSH.","og_url":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2021-08-11T06:32:00+00:00","article_modified_time":"2021-11-04T19:59:48+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/How-to-Edit-File-in-SSH-Using-Nano.jpg","type":"image\/jpeg"}],"author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5fbfcaed32a2672fb83ab312f5b7237b"},"headline":"How to Edit &#038; Create a File in SSH Using Nano","datePublished":"2021-08-11T06:32:00+00:00","dateModified":"2021-11-04T19:59:48+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/"},"wordCount":600,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/Learn-How-to-Edit-Create-a-File-in-SSH-Using-Nano-1024x538.png","articleSection":["SSH and Root Access"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/","url":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/","name":"How to Edit File in SSH Using Nano Explained","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/Learn-How-to-Edit-Create-a-File-in-SSH-Using-Nano-1024x538.png","datePublished":"2021-08-11T06:32:00+00:00","dateModified":"2021-11-04T19:59:48+00:00","description":"Learn how to edit files using nano via SSH.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/Learn-How-to-Edit-Create-a-File-in-SSH-Using-Nano.png","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/Learn-How-to-Edit-Create-a-File-in-SSH-Using-Nano.png","width":1200,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-edit-files-using-nano\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Edit &#038; Create a File in SSH Using Nano"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5fbfcaed32a2672fb83ab312f5b7237b","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/john-paul\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":4307,"name":"SSH and Root Access","slug":"ssh","link":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/77","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=77"}],"version-history":[{"count":10,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/77\/revisions"}],"predecessor-version":[{"id":91079,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/77\/revisions\/91079"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=77"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=77"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=77"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}