Using Nano as a Editor

Installing(if not available) nano for mac/ubuntu

For Mac:

Download Page

1
2
3
./configure
make
sudo make install

For Ubuntu:

1
aptitude install nano

Basic commands

To create or edit a file, use the following command:

1
nano tmp.html

At the bottom of the screen you should see a bunch of commands. The caret ^ signifies holding down the control key and typing the letter.

All the list of commands are higlighted as we press ctrl key.

To quit nano, which was the biggest question I had, just use ctrl + X It prompts to save if you changed the file. press y or n and we’re done.

Here’s more from the nano editor org

Comments

Comments