Nano Cheat Sheet
Below you will find a basic guide on how to use nano with some basic commands to help you navigate your way through this editor
Key
nano = create new file & open editornano file1.php = open a specific file using nano- Ctrl is represented as
^ - Alt is represented as
M
Basic commands
| Commands |
Actions |
Ctrl + O , ^O
|
Save A File |
Alt + B , M-B
|
Create a Backup |
| ^X |
Exit file , with prompt |
| M-U |
Undo an action |
| ^G |
Get Help |
Navigation
| Commands |
Navigate Actions |
| ^F |
Move one character forward |
| ^B |
Move one character backward |
| ^Space |
Move one word forward |
| M-Space |
Move one work backward |
| ^P |
Move to previous line |
| ^N |
Move to next line |
| ^V |
Move to next page |
| ^Y |
Move to previous page |
| ^A |
Move to Beginning of line |
| ^E |
Move to End of line |
Search and replace
| Commands |
Search Actions |
| ^W |
To open Search prompt |
| ^T |
To Search Line Number |
| M-W |
Go to Next result |
| ^R |
Replace Searched Text |
Copy and paste
| Commands |
Text Actions |
| M-6 |
Cut Text / Line |
| ^K |
Copy Text / Line |
| ^U |
Paste Copied Data |