Using nano as a editor

Installing(if not available) nano for mac/ubuntu

For Mac:

Download Page

./configure
make
sudo make install

For Ubuntu:

aptitude install nano

Basic commands

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

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

Updated: