CLI Editor

Easiest CLI text editor for Linux

Nano is my favorite pick for a CLI editor when using Linux.

Example for Centos 7:

1) Install:

yum install nano

Typically already installed. No harm in the above command, if already installed it will just give you the feedback ‘nothing to do’.

2) How to use

a) Open a file in the current directory:

nano filename

b) Open a file in another directory:

nano /path/to/directory/myfile.txt

3) Some relevant commands:

Save a file: ctr - O

Exit: ctrl - X (it will prompt you for saving if necessary)

Scroll to Top