Show Menu
Cheatography

Nano Editor Keyboard Shortcuts (DRAFT) by

This is meant to be a quick overview of common Nano editor keyboard shortcuts. Is is not meant to replace the official documentation found on the nano website, just provide some of the most common items in an accessible format.

This is a draft cheat sheet. It is a work in progress and is not finished yet.

File Management

Ctrl+G
Display nano help
Ctrl+X
Close the current file buffer or exit nano
Ctrl+O
Write the current file buffer to disk
Ctrl+R
Insert another file into the current one
Alt+>
Switch to the next file buffer
Alt+<
Switch to the previous file buffer
Ctrl+C
Display the position of the cursor
Alt+Sh­ift+3
Enable­/Di­sable Line Numbers

Search and Replace

Ctrl+W
Search for a string or a regular expression
Ctrl+\
Replace a string or a regular expression
Alt+W
Repeat the last search
 

Navigation

or Ctrl+P
One line up
or Ctrl+N
One line down
or Ctrl+F
One character forward
or Ctrl+B
One character back
Ctrl+→ or Alt+→
One word forward
Ctrl+← or Alt+←
One word back
Ctrl+A or Alt+↑
Jump to the start of a line
Ctrl+E or Alt+↓
Jump to the end of a line
Ctrl+/ # (#)
Jump to the line and, option­ally, character position

Navigation

or Ctrl+P
One line up
or Ctrl+N
One line down
or Ctrl+F
One character forward
or Ctrl+B
One character back
Ctrl+→ or Alt+→
One word forward
Ctrl+← or Alt+←
One word back
Ctrl+A or Alt+↑
Jump to the start of a line
Ctrl+E or Alt+↓
Jump to the end of a line
Ctrl+/ # (#)
Jump to a line number and, option­ally, character position