Ctrl K

Nano Usage

Keyboard shortcuts for multiline selection, cut and paste, and fast movement in long files in nano.

Nano handles selection, cut, paste, and navigation entirely through keyboard shortcuts. This page is a quick reference for the shortcuts used most often during edits in long files.

Shortcuts

ShortcutAction
Ctrl+^Start selecting from cursor (same as Ctrl+Shift+6)
Ctrl+KCut selection, or delete the whole current line if nothing selected
Alt+6Copy selection without deleting
Ctrl+UPaste most recently cut or copied text
Ctrl+VPage down
Ctrl+YPage up
Alt+/Jump to end of file
Alt+\Jump to start of file
Ctrl+_Jump to specific line number
  • After Ctrl+^ (start selection), expand the selection using arrow keys.
  • After Ctrl+_, type the target line number and press Enter.
  • Ctrl+K cuts the selection when one is active; otherwise it deletes the entire current line.