{"id":1441,"date":"2017-10-24T15:24:31","date_gmt":"2017-10-24T15:24:31","guid":{"rendered":"https:\/\/www.xsofthost.com\/help\/?p=1441"},"modified":"2021-03-14T23:46:24","modified_gmt":"2021-03-14T23:46:24","slug":"how-to-install-and-use-nano-text-editor-commands-in-linux","status":"publish","type":"post","link":"https:\/\/www.xsofthost.com\/help\/how-to-install-and-use-nano-text-editor-commands-in-linux\/","title":{"rendered":"How to Install and use Nano Text Editor Commands in Linux"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"1441\" class=\"elementor elementor-1441\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-df6ca07 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"df6ca07\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-898374d\" data-id=\"898374d\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-55bc83d elementor-widget elementor-widget-text-editor\" data-id=\"55bc83d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>When working on the command line, quite often you will need to create or edit text files or any kind of file to edit. Two of the most powerful and popular command-line editors are Vim and Emacs. Both of them have a steep learning curve that can be intimidating to new users. For those who need a simple editor, there is nano.<\/p>\n<p>GNU nano is an easy to use command line text editor for Unix and Linux operating systems. It includes all the basic functionality you\u2019d expect from a regular text editor, like syntax highlighting, multiple buffers, search and replace with regular expression support and more.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-700c1c4 elementor-widget elementor-widget-heading\" data-id=\"700c1c4\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">What is GNU Nano Editor<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-69e9a52 elementor-widget elementor-widget-text-editor\" data-id=\"69e9a52\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<b>GNU nano<\/b> is a one of the popular and easiest command line text editor used on many operating systems including Unix-based systems and BSD variants.\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6bdec2e elementor-widget elementor-widget-heading\" data-id=\"6bdec2e\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">How to install GNU Nano Text Editor<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-808b611 elementor-widget elementor-widget-text-editor\" data-id=\"808b611\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\tSome OS distributions comes with Nano editor installed ,therefore install nano depends on OS.\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-473968d elementor-widget elementor-widget-heading\" data-id=\"473968d\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Install GNU Nano Text Editor on Debian \/ Ubuntu\n<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7048b71 elementor-widget elementor-widget-code-highlight\" data-id=\"7048b71\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>sudo apt-get install nano<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e9ad5a1 elementor-widget elementor-widget-heading\" data-id=\"e9ad5a1\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Install Nano Text Editor on CentOS \/ RHEL<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cdbf694 elementor-widget elementor-widget-code-highlight\" data-id=\"cdbf694\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>yum install nano<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-55452ab elementor-widget elementor-widget-heading\" data-id=\"55452ab\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">GNU Nano Text Editor Common Commands<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d0e17ef elementor-widget elementor-widget-text-editor\" data-id=\"d0e17ef\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\tTo edit a file you can type the following command , in case the file not exists the Nono editor will create new file on save the file.\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ab5c2df elementor-widget elementor-widget-code-highlight\" data-id=\"ab5c2df\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>nano sample.text<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-27d0f05 elementor-widget elementor-widget-text-editor\" data-id=\"27d0f05\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Here is some basic <b>nano commands<\/b> might help you while editing file:<\/p>\n<ul>\n<li><strong>CTRL + A<\/strong>\u00a0:Jump to the beginning of the line.<\/li>\n<li><strong>CTRL + E<\/strong>\u00a0:Jump to the end of the line.<\/li>\n<li><strong>CTRL + V<\/strong>\u00a0:Scroll page up.<\/li>\n<li><strong>CTRL + Y<\/strong>\u00a0:Scroll page down.<\/li>\n<li><strong>CTRL + W<\/strong>\u00a0:Search for a specified phrase in your text. To search for the same phrase again press ALT + W.<\/li>\n<li><strong>CTRL + K<\/strong>\u00a0:Cuts the entire selected line to the \u201ccut buffer\u201d.<\/li>\n<li><strong>CTRL + U<\/strong>\u00a0:Pastes the text from the \u201ccut buffer \u2013 Memory\u201d into the selected line.<\/li>\n<li><strong>CTRL + J<\/strong>\u00a0:Justifies the paragraph.<\/li>\n<li><strong>CTRL + _<\/strong>\u00a0:Go to specified line and column number.<\/li>\n<li><strong>CTRL + C<\/strong>\u00a0: See where your cursor currently is.<\/li>\n<li><strong>CTRL + X<\/strong>\u00a0:Exits Nano text editor. In case you made any changes to the file, it will prompt a save request.<\/li>\n<\/ul>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>When working on the command line, quite often you will need to create or edit text files or any kind of file to edit. Two of the most powerful and popular command-line editors are Vim and Emacs. Both of them have a steep learning curve that can be intimidating to new users. For those who need a simple editor, there is nano.<br \/>\nGNU nano is an easy to use command line text editor for Unix and Linux operating systems. It includes all the basic functionality you\u2019d expect from a regular text editor, like syntax highlighting, multiple buffers, search and replace with regular expression support, spellchecking, UTF-8 encoding, and more.<\/p>\n","protected":false},"author":1,"featured_media":859,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[41,187],"tags":[178,50,149,74],"_links":{"self":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/1441"}],"collection":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/comments?post=1441"}],"version-history":[{"count":61,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/1441\/revisions"}],"predecessor-version":[{"id":2051,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/1441\/revisions\/2051"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/media\/859"}],"wp:attachment":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/media?parent=1441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/categories?post=1441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/tags?post=1441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}