October 21, 2021
How to install Nano On ceO

How To install And Use Nano Text Editor On CentOS 8

On this article we will learn how to install the last stable of Nano text editor and trying to use it on CentOS 8 operating system.


Nano text editor is one of the most popular text editors for someoperating system, especially for Linux. For some operating system, like MacOS and any Linux distros, Nano may already come as pre-installed text editor tools. Nano text editor become popular because of its ease of use so that file editing can be done faster. Nano comes with many features which allows us to edit and create various files on server or computer. Nano has all basic functionality as same as other text editors such as: search and replace with regular expression support, syntax highlighting, multiple buffers, spellchecking, UTF-8 encoding, etc. On this article we will learn how to install Nano text editor on CentOS 8 Linux operating system. We will use Nano version 2.9.8.

Nano Installation on CentOS 8

In this section, we will explain the process of installing Nano text editor on CentOS 8. The installation process will consist of several stages, namely:

  1. Update system
  2. Install Nano
  3. Using Nano

1. Update System

By updating our system, it will refresh the local list of available packages software to the newer stable version. To update CentOS 8 system repositories, we will use the command line : sudo dnf update.

[ramans@diginetapp01 ~]$ sudo dnf update 
Warning: failed loading '/etc/yum.repos.d/plex.repo', skipping.
Extra Packages for Enterprise Linux Modular 8 - x86_64                     54 kB/s | 931 kB     00:17    
Extra Packages for Enterprise Linux 8 - x86_64                            426 kB/s |  10 MB     00:24    
Last metadata expiration check: 0:00:06 ago on Fri 27 Aug 2021 04:24:11 PM PDT.
Dependencies resolved.
 Package                       Architecture      Version                       Repository            Size
 compat-exiv2-026              x86_64            0.26-4.el8_4                  appstream            889 k
 firefox                       x86_64            78.13.0-2.el8_4               appstream            102 M
 libipa_hbac                   x86_64            2.4.0-9.el8_4.2               baseos               111 k
 libsss_autofs                 x86_64            2.4.0-9.el8_4.2               baseos               113 k
 libsss_certmap                x86_64            2.4.0-9.el8_4.2               baseos               150 k
 libsss_idmap                  x86_64            2.4.0-9.el8_4.2               baseos               116 k
 libsss_nss_idmap              x86_64            2.4.0-9.el8_4.2               baseos               122 k
 libsss_sudo                   x86_64            2.4.0-9.el8_4.2               baseos               111 k
 python3-sssdconfig            noarch            2.4.0-9.el8_4.2               baseos               137 k
 sssd                          x86_64            2.4.0-9.el8_4.2               baseos               102 k
 sssd-ad                       x86_64            2.4.0-9.el8_4.2               baseos               273 k
 sssd-client                   x86_64            2.4.0-9.el8_4.2               baseos               197 k
 sssd-common                   x86_64            2.4.0-9.el8_4.2               baseos               1.6 M
 sssd-common-pac               x86_64            2.4.0-9.el8_4.2               baseos               177 k
 sssd-ipa                      x86_64            2.4.0-9.el8_4.2               baseos               358 k
 sssd-kcm                      x86_64            2.4.0-9.el8_4.2               baseos               236 k
 sssd-krb5                     x86_64            2.4.0-9.el8_4.2               baseos               145 k
 sssd-krb5-common              x86_64            2.4.0-9.el8_4.2               baseos               186 k
 sssd-ldap                     x86_64            2.4.0-9.el8_4.2               baseos               222 k
 sssd-nfs-idmap                x86_64            2.4.0-9.el8_4.2               baseos               111 k
 sssd-proxy                    x86_64            2.4.0-9.el8_4.2               baseos               145 k

Transaction Summary
Upgrade  21 Packages

Total download size: 107 M
Update CentOS 8 system
Update CentOS 8 system

2. Installing Nano Text Editor On CentOS 8

After we updated CentOS 8 system, then we will install Nano by submitting command line : sudo dnf install nano.

Install Nano on CentOS 8
Install Nano on CentOS 8

Verifying Nano version

After Nano installation was completed done, then we will verify it by querying its version by typing command line : nano -V or nano --version.

[ramans@diginetapp01 ~]$ nano -V
 GNU nano, version 2.9.8
 (C) 1999-2011, 2013-2018 Free Software Foundation, Inc.
 (C) 2014-2018 the contributors to nano
 Email: nano@nano-editor.org	Web: https://nano-editor.org/
 Compiled options: --enable-utf8
Nano version 2.9.8
Nano version 2.9.8

Using Nano Text Editor

To use Nano text editor on Linux environment (especially CentOS 8, where this tutorial is made) is quite easy. From the command prompt, just type nano, then we will be faced with a media editing console. By using Nano we can : create a new document, edit a document, searching a context on a document.

Using Nano on CentOS 8
Using Nano on CentOS 8

Basic Nano Text Editor Commands

To make it easier to use nano text editor, here are simple commands that are commonly used in using nano.

Command Desciptions
CTRL + A Lets you jump to the beginning of the line.
CTRL + E Lets you to jump to the end of the line.
CTRL + Y Scrolls page down.
CTRL + V Scrolls page up.
CTRL + G A Help window will pop out and show you all the available commands.
CTRL + O To save the file. Nano will ask you to edit or verify the desired file name.
CTRL + W Search for a specified phrase in your text. Press ALT + W to search for the same phrase again.
CTRL + K It cuts the entire selected line to the cut buffer (similar to clipboard).
CTRL + U To paste the text from the cut buffer into the selected line.
CTRL + J Justifies the current paragraph.
CTRL + C Shows the current cursor position in the text (line/column/character).
CTRL + R Opens a file and inserts it at the current cursor position.
CTRL + X To exit Nano text editor. It prompts a save request if you made any changes to the file.
CTRL + \ Replaces string or a regular expression.
CTRL + T Invokes the spell checker, if available.
CTRL + _ Lets you go to the specified line and column number.
ALT + A To select text. You can combine this command with CTRL + K to cut a specific part of the text to the cut buffer.


We have shown you how to install Nano text editor on CentOS 8 oprating system. I hope, this article can be useful for anyone who is looking for information about Nano. For more information about Nano text editor can be found on Nano official website.

Share this article via :

Leave a Reply

Your email address will not be published. Required fields are marked *