The document provides an overview of shortcuts in the nano text editor organized by function. It lists shortcuts for file handling, moving around text, editing, search and replace, deletion, operations, and various other functions. Shortcuts include Ctrl+S to save, Ctrl+F/B to move forward or backward by character, Ctrl+K/U to cut or paste, and Alt+G to go to a specific line.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
833 views2 pages
Cheatsheet For Nano
The document provides an overview of shortcuts in the nano text editor organized by function. It lists shortcuts for file handling, moving around text, editing, search and replace, deletion, operations, and various other functions. Shortcuts include Ctrl+S to save, Ctrl+F/B to move forward or backward by character, Ctrl+K/U to cut or paste, and Alt+G to go to a specific line.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2
Overview of nano's shortcuts
The editor's keystrokes and their functions
File handling Moving around
Ctrl+S Save current file Ctrl+B One character backward Ctrl+O Offer to write file ("Save as") Ctrl+F One character forward Ctrl+R Insert a file into current one Ctrl+ One word backward Ctrl+X Close buffer, exit from nano Ctrl+ One word forward Ctrl+A To start of line Editing Ctrl+E To end of line Ctrl+K Cut current line into cutbuffer Ctrl+P One line up Alt+6 Copy current line into cutbuffer Ctrl+N One line down Ctrl+U Paste contents of cutbuffer Ctrl+ To previous block Alt+T Cut until end of buffer Ctrl+ To next block Ctrl+] Complete current word Ctrl+Y One page up Alt+3 Comment/uncomment line/region Ctrl+V One page down Alt+U Undo last action Alt+\ To top of buffer Alt+E Redo last undone action Alt+/ To end of buffer
Search and replace Special movement
Ctrl+Q Start backward search Alt+G Go to specified line Ctrl+W Start forward search Alt+] Go to complementary bracket Alt+Q Find next occurrence backward Alt+ Scroll viewport up Alt+W Find next occurrence forward Alt+ Scroll viewport down Alt+R Start a replacing session Alt+< Switch to preceding buffer Alt+> Switch to succeeding buffer Deletion Ctrl+H Delete character before cursor Information Ctrl+D Delete character under cursor Ctrl+C Report cursor position Ctrl+Shift+Del Delete word to the left Alt+D Report word/line/char count Ctrl+Del Delete word to the right Ctrl+G Display help text Alt+Del Delete current line Various Operations Alt+A Turn the mark on/off Ctrl+T Run a spell check Tab Indent marked region Ctrl+J Justify paragraph or region Shift+Tab Unindent marked region Alt+J Justify entire buffer Turn visible whitespace on/off Alt+P Alt+B Run a syntax check Alt+: Start/stop recording of macro Alt+V Enter next keystroke verbatim Alt+; Replay macro Ctrl+L Refresh the screen Ctrl+Z Suspend nano