› GNU nano

GNU nano Shortcuts

GNU nano keyboard shortcuts for the terminal text editor: saving, searching, cut and paste.

Source: Official documentation · Dataset date 2026-06

22
Shortcuts
4
Categories

Cheat sheet guide

GNU nano shortcuts worth learning first

This page collects 22 searchable GNU nano keyboard shortcuts across 4 categories. Start with the shortcuts for File, Editing, Search & Replace, Navigation, then print the cheat sheet once the important ones are worth keeping nearby.

  • Save file (write out)CtrlO
  • Cut lineCtrlK
  • Search (where is)CtrlW
  • Beginning of lineCtrlA
  • ExitCtrlX
  • Read file into bufferCtrlR

File

4 shortcuts
Save file (write out)
CtrlO
Ctrl+O
Exit
CtrlX
Ctrl+X
Read file into buffer
CtrlR
Ctrl+R
Show help
CtrlG
Ctrl+G

Editing

7 shortcuts
Cut line
CtrlK
Ctrl+K
Paste (uncut)
CtrlU
Ctrl+U
Copy line
Alt6
Alt+6 · Opt+6
Mark text (set selection)
Ctrl6
Ctrl+6
Undo
AltU
Alt+U · Opt+U
Redo
AltE
Alt+E · Opt+E
Insert next character literally
AltV
Alt+V · Opt+V

Search & Replace

4 shortcuts
Search (where is)
CtrlW
Ctrl+W
Search next
AltW
Alt+W · Opt+W
Replace
Ctrl\
Ctrl+\
Go to line and column
Ctrl_
Ctrl+_

Navigation

7 shortcuts
Beginning of line
CtrlA
Ctrl+A
End of line
CtrlE
Ctrl+E
Previous page
CtrlY
Ctrl+Y
Next page
CtrlV
Ctrl+V
Go to first line
Alt\
Alt+\ · Opt+\
Go to last line
Alt/
Alt+/ · Opt+/
Show cursor position
CtrlC
Ctrl+C

Frequently asked questions

What is the fastest way to find GNU nano shortcuts on this page?

Use the search box or press /, then type an action such as save file (write out).

Can I print this GNU nano shortcut cheat sheet?

Yes. Use the Print / PDF button or your browser print command to save a compact cheat sheet.

Which operating systems are included for GNU nano?

This reference includes shortcuts for Windows · macOS · Linux. Availability depends on the action and app version.

See also

Explore shortcuts by key

Key lookup

No shortcuts match your search.