GNU nano

GNU nano Shortcuts

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

Source: Official documentation · Updated 2026-06

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
Exit
CtrlX
Read file into buffer
CtrlR
Show help
CtrlG

Editing

7 shortcuts
Cut line
CtrlK
Paste (uncut)
CtrlU
Copy line
Alt6
Mark text (set selection)
Ctrl6
Undo
AltU
Redo
AltE
Insert next character literally
AltV

Search & Replace

4 shortcuts
Search (where is)
CtrlW
Search next
AltW
Replace
Ctrl\
Go to line and column
Ctrl_

Navigation

7 shortcuts
Beginning of line
CtrlA
End of line
CtrlE
Previous page
CtrlY
Next page
CtrlV
Go to first line
Alt\
Go to last line
Alt/
Show cursor position
CtrlC

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.

Does this page include Windows and Mac shortcuts for GNU nano?

Yes. Use the OS tabs to switch between Windows and macOS shortcuts. For example, Save file (write out) is Ctrl+O on Windows and ⌃O on macOS where available.

See also

No shortcuts match your search.