Nano Commands
Essential Nano editor commands and keyboard shortcuts.
File Operations
Ctrl+OSave file (WriteOut)
Ctrl+XExit nano
Ctrl+RRead file (insert file at cursor)
Ctrl+JJustify current paragraph
Alt+DCount words, lines, characters
Navigation
Arrow KeysMove cursor up, down, left, right
Ctrl+AMove to beginning of line
Ctrl+EMove to end of line
Ctrl+YScroll up one page
Ctrl+VScroll down one page
Ctrl+_Go to line and column number
Alt+\Go to first line
Alt+/Go to last line
Ctrl+SpaceMove forward one word
Alt+SpaceMove backward one word
Editing
Ctrl+KCut current line
Ctrl+UPaste cut text
Alt+6Copy current line
Ctrl+6Mark text (start selection)
Alt+AMark text (set mark)
Ctrl+DDelete character at cursor
BackspaceDelete character before cursor
Alt+DeleteDelete word to the right
Ctrl+TExecute external command
Search & Replace
Ctrl+WSearch for text
Alt+WFind next occurrence
Alt+QFind previous occurrence
Ctrl+\Search and replace
Alt+RSearch and replace (interactive)
Undo & Redo
Alt+UUndo last action
Alt+ERedo last undone action
Special Features
Ctrl+GDisplay help text
Alt+XToggle help mode
Alt+CShow cursor position
Alt+#Toggle line numbers
Alt+PToggle whitespace display
Alt+YToggle syntax highlighting
Alt+OToggle one-line mode
Ctrl+LRefresh screen
Advanced
Alt+}Indent current line
Alt+{Unindent current line
Alt+3Comment/uncomment line
Alt+]Complete current word
Ctrl+]Complete current bracket
Alt+TCut to end of file
Alt+JJustify entire file
Alt+BToggle backup files
Alt+FToggle multiple file buffers
Alt+<Switch to previous file buffer
Alt+>Switch to next file buffer