nano
Shortcut keys for editing, navigating and managing text inside the Nano editor.
Navigation
Move efficiently within a file using these commands.
Move to first line
Moves to the first line of the file.
Move to last line
Moves to the last line of the file.
Move to beginning of line
Moves the cursor to the start of the current line.
Move to end of line
Moves the cursor to the end of the current line.
Move to previous line
Moves the cursor to the previous line.
Move to next line
Moves the cursor to the next line.
Move to previous word
Moves the cursor backward one word at a time.
Move to next word
Moves the cursor forward one word at a time.
Move to line number
Moves the cursor to a specific line number.
Selecting Text
Commands for selecting and cutting text.
Start selecting text
Starts marking text for cut/copy operations.
Copy selected text
Copies the selected text and stores it in the buffer.
Cut selected text
Cuts the selected text and stores it in the buffer.
Paste text
Pastes the last cut text.
Search and Replace
Find text and perform replacements efficiently.
Search for a word
Finds the next occurrence of a word in the file.
Search and replace
Replaces text throughout the file.
Find next occurrence
Jump to the next match in the current search.
Exiting Nano
How to quit Nano safely.
Save and exit
Writes changes to file and quits.
Exit without saving
Closes Nano without saving changes.
Miscellaneous
Other useful Nano commands.
Display help
Shows Nano's help documentation.
Undo
Revert the most recent change.
Redo
Reapply the most recently undone change.