Nano
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