| Key | Description |
|---|---|
| Ctrl+G | Display help text |
| Ctrl+X | Exit nano (prompts to save if modified) |
| Option | Description |
|---|---|
| +25 | Open the file at line 25 |
| -l | Show line numbers |
| -v | View mode (read-only) |
| -B | Keep a backup of the previous version when saving |
| Key | Description |
|---|---|
| Ctrl+A | Move to beginning of line |
| Ctrl+E | Move to end of line |
| Ctrl+Y | Scroll up one page |
| Ctrl+V | Scroll down one page |
| Ctrl+Left | Move to previous word |
| Ctrl+Right | Move to next word |
| Ctrl+_ | Go to a specific line (and column) number |
| Ctrl+C | Show current cursor position (line, column) |
| Key | Description |
|---|---|
| Ctrl+O | Write out (save) the current file |
| Ctrl+R | Read (insert) another file into the current one |
| Alt+< | Switch to the previous open file |
| Alt+> | Switch to the next open file |
| Key | Description |
|---|---|
| Ctrl+W | Search forward |
| Ctrl+Q | Search backward |
| Alt+W | Repeat search, next match |
| Alt+Q | Repeat search, previous match |
| Ctrl+\\ | Search and replace |
| Key | Description |
|---|---|
| Ctrl+K | Cut the current line (or selected text) |
| Alt+6 | Copy the current line (or selected text) |
| Ctrl+U | Paste the last cut text |
| Alt+A | Start selecting text (set mark) |
| Alt+U | Undo |
| Alt+E | Redo |
| Ctrl+D | Delete the character under the cursor |
| Ctrl+J | Justify the current paragraph |
| Ctrl+T | Execute a command (or spell check in older versions) |
| Alt+# | Toggle line numbers |