Nano is the easiest command-line text editor to learn πŸ‰.

# create or open a file
$ nano filename

Basic commands πŸ“š:

  • Use arrows to navigate in the file
  • Ctrl+S: save file
  • Ctrl+O: save file as
  • Ctrl+X: exit nano

Other useful commands πŸ—ƒοΈ:

  • Ctrl+K: delete (cut) the current line
  • Ctrl+U: paste the last cut line
  • Ctrl+W: search
  • ALT+U: undo
  • ALT+E: redo

Tips πŸ¦„:

  • Toggle line numbers: ALT+N
  • Open the HELP menu: CTRL+G