Skip to content
Dr. M H B Ariyaratne edited this page Jun 17, 2019 · 1 revision

Test Editors are essential tools for managing Linux servers. Vim and Emacs are popular text editors, but difficult for novice Linux users. Nano is straightforward and easy to use text editor which comes preinstalled in Linux systems.

If you type nano in the command lines, the text editor will appear. If not, you have to install it yourself.

You need to ahve super user privileges to install nano,

Type

sudo apt-get install nano

This will ask the password of the super user account and will install nano.

You can edit files by specifying the file name at the end of nano command.

Example

sudo nano /etc/mysql/my.cnf

While you are editing in nano, use Ctrl+O to save the changes. User Ctrl+X to exit.

Clone this wiki locally