Nano, though often underrated, is a straightforward text editor renowned for its simplicity and intuitive interface. It's particularly handy when you're not familiar with Vim key bindings. Many shortcuts are conveniently displayed in the text user interface (TUI) itself.
Here are some essential commands to help you get started:
Basic Navigation:
Ctrl + A
or Ctrl + E
, respectively.Ctrl + Y
or Ctrl + V
, respectively.Editing Text:
Ctrl + D
.Ctrl + K
), copy (Alt + ^
), and paste (Ctrl + U
) text.Selection and Indentation:
Esc
followed by A
.Alt + {
.Undo and Redo:
Alt + U
.Search and Replace:
Ctrl + W
, then type the search term.Alt + R
, then enter the search and replacement terms.Saving and Exiting:
Ctrl + O
.Ctrl + X
.