{"id":957,"date":"2018-01-19T10:43:43","date_gmt":"2018-01-19T10:43:43","guid":{"rendered":"https:\/\/www.newdelhihosting.co.in\/blog\/?p=957"},"modified":"2024-10-22T10:53:40","modified_gmt":"2024-10-22T10:53:40","slug":"install-and-use-nano-text-editor","status":"publish","type":"post","link":"https:\/\/www.newdelhihosting.co.in\/blog\/install-and-use-nano-text-editor\/","title":{"rendered":"How to Install and Use Nano Text Editor"},"content":{"rendered":"<p><strong>Nano\u00a0<\/strong>will enable you to edit text files in your VPS on the command line when you are logged in using SSH.<\/p>\n<p><strong>Step1:Installing Nano Text Editor Ce<\/strong>ntOS<\/p>\n<pre>yum install nano<\/pre>\n<p>you can test it out by writing this command<\/p>\n<pre>nano testfile.txt<\/pre>\n<p>It should open a new text editor window and if you make any changes to this file, they will be saved under the name test.txt.<br \/>\nTo exit Nano, for now, press CTRL + X. It will you ask whether to save changes in the file. Enter y for yes and then press ENTER.<\/p>\n<p><strong>Step2:Using Nano Text Editor<\/strong><\/p>\n<table style=\"height: 24px;\" width=\"764\">\n<tbody>\n<tr>\n<td align=\"left\" valign=\"middle\" width=\"30\">Command<\/td>\n<td align=\"center\" valign=\"middle\">Explanation<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"middle\" width=\"30\">CTRL + A<\/td>\n<td align=\"left\" valign=\"middle\">Jump to the beginning of the line.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"middle\" width=\"30\">CTRL + E<\/td>\n<td align=\"left\" valign=\"middle\">Jump to the end of the line.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"middle\" width=\"30\">CTRL + Y<\/td>\n<td align=\"left\" valign=\"middle\">Scroll page down.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"middle\" width=\"30\">CTRL + V<\/td>\n<td align=\"left\" valign=\"middle\">Scroll page up.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"middle\" width=\"30\">CTRL + G<\/td>\n<td align=\"left\" valign=\"middle\">This command will bring up a Help window which has information regarding all the commands you can use with the Nano editor.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"middle\" width=\"30\">CTRL + O<\/td>\n<td align=\"left\" valign=\"middle\">Basically a save command. When used, you will be prompted to edit or verify the desired file name and after pressing enter, it will save your file.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"middle\" width=\"30\">CTRL + W<\/td>\n<td align=\"left\" valign=\"middle\">One of the most useful commands. It\u2019s used to search for a specified phrase in your text. It works much like the usual CTRL+F command on other apps and platforms. To search for the same phrase again press ALT + W.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"middle\" width=\"30\">CTRL + K<\/td>\n<td align=\"left\" valign=\"middle\">Cuts the entire selected line to the \u201ccut buffer\u201d.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"middle\" width=\"30\">CTRL + U<\/td>\n<td align=\"left\" valign=\"middle\">Pastes the text from the \u201ccut buffer\u201d into the selected line.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"middle\" width=\"30\">CTRL + J<\/td>\n<td align=\"left\" valign=\"middle\">Justifies the current paragraph.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"middle\" width=\"30\">CTRL + C<\/td>\n<td align=\"left\" valign=\"middle\">Shows the current cursor position in the text (line\/column\/character).<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"middle\" width=\"30\">CTRL + X<\/td>\n<td align=\"left\" valign=\"middle\">Exits Nano text editor. In case you made any changes to the file, it will additionally prompt a save request.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"middle\" width=\"30\">CTRL + R<\/td>\n<td align=\"left\" valign=\"middle\">Open a file with \u201cRead File\u201d command. Inserts file from disk at the current cursor position.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"middle\" width=\"30\">CTRL + \\<\/td>\n<td align=\"left\" valign=\"middle\">Replace string or a regular expression.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"middle\" width=\"30\">CTRL + T<\/td>\n<td align=\"left\" valign=\"middle\">Invoke the spell checker, if available.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"middle\" width=\"30\">CTRL + _<\/td>\n<td align=\"left\" valign=\"middle\">Go to specified line and column number<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"middle\" width=\"30\">ALT + A<\/td>\n<td align=\"left\" valign=\"middle\">Select text. First, move the cursor to the beginning of a specific part of the text which you want to select, then press ALT + A. Now move the cursor with arrow keys to the right, this will start marking\/selecting text. You can combine this command with CTRL + K to cut a specific part of the text to the \u201ccut buffer\u201d.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Nano\u00a0will enable you to edit text files in your VPS on the command line when you are logged in using SSH. Step1:Installing Nano Text Editor CentOS yum install nano you can test it out by writing this command nano testfile.txt It should open a new text editor window and if you make any changes to&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[14],"tags":[],"class_list":["post-957","post","type-post","status-publish","format-standard","hentry","category-vps-2"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/posts\/957"}],"collection":[{"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/comments?post=957"}],"version-history":[{"count":6,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/posts\/957\/revisions"}],"predecessor-version":[{"id":964,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/posts\/957\/revisions\/964"}],"wp:attachment":[{"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/media?parent=957"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/categories?post=957"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/tags?post=957"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}