Nano

Nano Cheatsheet #

Nano is a simple, easy-to-use text editor for Unix-like systems. It is known for its straightforward interface and intuitive keyboard shortcuts.

Basic Navigation #

Command/OptionExampleDescription
Ctrl + ACtrl + AMove cursor to the beginning of the line
Ctrl + ECtrl + EMove cursor to the end of the line
Ctrl + YCtrl + YMove up one page
Ctrl + VCtrl + VMove down one page
Ctrl + CCtrl + CDisplay the current cursor position

Editing Text #

Command/OptionExampleDescription
Ctrl + KCtrl + KCut the current line
Ctrl + UCtrl + UPaste the cut line
Ctrl + JCtrl + JJustify the current paragraph
Ctrl + TCtrl + TOpen the spell checker (if available)
Ctrl + _Ctrl + _Go to a specific line number

Search and Replace #

Command/OptionExampleDescription
Ctrl + WCtrl + W search_termSearch for “search_term”
Ctrl + \Ctrl + \ old_textReplace “old_text” with a new text (follow prompts)

File Operations #

Command/OptionExampleDescription
Ctrl + OCtrl + O filenameSave the current file as “filename”
Ctrl + XCtrl + XExit Nano (prompts to save if changes are made)
Ctrl + RCtrl + R file_to_insertInsert another file into the current file
Ctrl + GCtrl + GDisplay the help text

Miscellaneous #

Command/OptionExampleDescription
Ctrl + CCtrl + CDisplay the current cursor position
Ctrl + XCtrl + XExit Nano (prompt to save changes)
Ctrl + LCtrl + LRefresh the screen
Ctrl + ZCtrl + ZSuspend the editor (return to shell)

This cheatsheet covers the essential Nano commands and options to help you navigate, edit, and manage text efficiently in the Nano text editor.

Nano

Explore our comprehensive cheatsheets to enhance your knowledge and efficiency. Each cheatsheet provides detailed command options, examples, and descriptions to help you master various tools and technologies.