Nano Text Editor

Nano is a simple, beginner-friendly text editor that lives right inside your terminal. Unlike more complex editors like Vim or Emacs, Nano is very easy to use from day one.

Opening Nano

To create or open a file with Nano, just type nano followed by the filename.

Bash

nano my_file.txt

Key Operations

In Nano, the ^ symbol stands for the Ctrl key. Look at the bottom of your screen in Nano for these shortcuts:

Editing Process

  1. Open the file: nano hello.txt
  2. Type your message.
  3. Press Ctrl + O and then Enter to save.
  4. Press Ctrl + X to exit and go back to the terminal.

Note: While you are in Nano, you can't use your mouse to click on lines or menus. You must use the arrow keys to move your cursor around.