Nano Cheatsheet - CheatSheet - WTF

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

CheatSheet.

Wtf

🔎 Search the page


0

Home
Resources
Links & Resources Terminology How to Use The Website
About
Contact & Site Metrics Become a Sponsor Contribute Make a Donation Website
Updates & News
Discord

🔎 Search the page


0

Home Resources How to Use The Website Make a Donation Become a Sponsor Contact &
Site Metrics Website Updates & News RSS About Cookies

Details on Use of Cookies

What we do

1. We currently do not use any cookies of our own.


2. We do use Google Analytics.
3. We do use Google Captcha.
4. We do use Amazon affiliate to show purchaseable items like books that are related
to the website content.

What we don't

1. Sell or handover any information we may have on you, or information that is


created when you visit or interact with our website.

Tell Me in English
We don't currently use any cookies of our own. We use Google Analytics, Google Captcha
and Amazon Affiliate program.

If at some point we decide to use cookies, we will change the color of the checkmark
icon you used to invoke this modal and you will be notified as such.

All Good

Share The Website with a Friend or Colleague


Close

Site Navigation

Site Content

File Handling Editing Moving Around Search & Replace Special Movement Deletion
Information Operations Various
Go to Start of Page

Nano Cheatsheet
This site is a reference for the text editor Nano

Last updated on 14 June, 2021 at 09:50:16 Optimized for

GNU Nano, formerly known as TIP (TIP is Not Pico) is a text editor based off of the Pico
text editor. The text editor is pretty straight compared to Vi, Vim or Emacs and is the first
encountered text editor of most GNU/Linux novices.

For the full experience we recommend viewing this website on a desktop or tablet.
OpSec OSINT Git Python Bash Linux CLI Package Management Regular Expressions
Nano Vim HTML5 Markdown Bootstrap 4 JQuery Flask ASCII IP HTTP Port Numbers
Save App

See Similar
Vim
Select a Category
View all Cheatsheets
General Purpose (1) Domain Specific (1) Imperative (1) Object-Oriented (1) Web
Development (3) DevOps (1) Control Versioning System (1) System Administration (2)
Scripting Language (1) Compiled Language (1) Markup Language (2) Command
Language (1) Framework (2) Frontend (1) Backend (6) Software Library (3) Tool (2)
Standard (1) Text Editor (3) Text Processing (4)
Nano Categories
Text Editor
Use the compass to jump to a specific section of the selected cheatsheet


File Handling
How to save and open files in Nano

Shortcuts for file handling.

Command Description

Ctrl+S Save current file

Ctrl+O Offer to write file ("Save as")

Ctrl+R Insert a file into current one

Ctrl+X Close buffer, exit from nano


Editing
How to edit files in Nano
Cutting, copy, pasting, word completion and more

Command Description

Ctrl+K Cut current line into cutbuffer

Alt+6 Copy current line into cutbuffer

Ctrl+U Paste contents of cutbuffer

Alt+T Cut until end of buffer

Ctrl+] Complete current word

Alt+3 Comment/uncomment line/region

Alt+U Undo last action

Alt+E Redo last undone action


Moving Around
Moving around text and buffers in Nano

Moving between words, buffers, characters and more

Command Description

Ctrl+B One character backward

Ctrl+F One character forward

Ctrl+← One word backward


Command Description

Ctrl+→ One word forward

Ctrl+A To start of line

Ctrl+E To end of line

Ctrl+P One line up

Ctrl+N One line down

Ctrl+↑ To previous block

Ctrl+↓ To next block

Ctrl+Y One page up

Ctrl+V One page down

Alt+\ To top of buffer

Alt+/ To end of buffer


Search & Replace
How to search for text in Nano

Searching and replacing text

Command Description
Command Description

Ctrl+Q Start backward search

Ctrl+W Start forward search

Alt+Q Find next occurrence backward

Alt+W Find next occurrence forward

Alt+R Start a replacing session


Special Movement
Special movement commands in Nano

Scroll the viewport, goto a given linenumber, goto complementary bracket or switch to a
preceding buffer

Command Description

Alt+G Go to specified line

Alt+] Go to complementary bracket

Alt+↑ Scroll viewport up

Alt+↓ Scroll viewport down

Alt+< Switch to preceding buffer

Alt+> Switch to succeeding buffer



Deletion
Command Description

Ctrl+H Delete character before cursor

Ctrl+D Delete character under cursor

Alt+Bsp Delete word to the left

Ctrl+Del Delete word to the right

Alt+Del Delete current line


Information
Command Description

Ctrl+C Report cursor position

Alt+D Report word/line/char count

Ctrl+G Display help text


Operations
Command Description
Command Description

Ctrl+T Execute some command

Ctrl+J Justify paragraph or region

Alt+J Justify entire buffer

Alt+B Run a syntax check

Alt+F Run a formatter/fixer/arranger

Alt+: Start/stop recording of macro

Alt+; Replay macro


Various
Command Description

Alt+A Turn the mark on/off

Tab Indent marked region

Shift+Tab Unindent marked region

Alt+N Turn line numbers on/off

Alt+P Turn visible whitespace on/off

Alt+V Enter next keystroke verbatim


Command Description

Ctrl+L Refresh the screen

Ctrl+Z Suspend nano

Online Resources & Books

Nano Official Website

The official website for Nano

Feedback

Send feedback Suggest an Enhancement File an Issue

Let's Connect!

Join os us on Discord Contribute to The Site Become a Sponsor

Apprehension of programming languages should be imminent

Email
Send

Wish to support us? Click here

CheatSheet.Wtf

© 2020 Copyright
Sitemap and Privacy Notice

You might also like