nano
EditorsBeginnerReference onlyA simple, beginner-friendly editor
Name: nano: smaller than the pico editor it cloned
This command is outside what the site lets you practise (mostly distribution-specific or rarely used tools). This page describes how to use it; try it on your own Linux system.
Description
nano is a simple terminal editor: you can type straight away and the main shortcuts are listed at the bottom (^ means Ctrl). It is the default editor on many distributions and ideal for quick config edits.
Syntax
nano [OPTION]... [FILE]Common options
| Ctrl+O | Save |
| Ctrl+X | Exit |
| Ctrl+W | Search |
| Ctrl+\ | Find and replace |
| Ctrl+K / Ctrl+U | Cut line / paste |
| Alt+U / Alt+E | Undo / redo |
| Ctrl+_ | Go to a line number |
| -l / --linenumbers | Show line numbers (a command-line option) |