This content originally appeared on DEV Community and was authored by Cheulong Sear
nano is a small and friendly editor. It copies the look and feel of Pico, but is free software, and implements several features that Pico lacks, such as opening multiple files, scrolling per line, undo/redo, syntax coloring, line numbering, and soft-wrapping overlong lines.
nano command may not be pre-installed on all Linux distributions. To install it use
# Debian/Ubuntu
sudo apt install nano
To use nano, just type nano
ctl + o: to save
ctl + x: to exit
ctl + : to replace
ctl + j: to justify text
ctl + c: to show the location of the cursor
alt + a: set mark
alt + 6: to copy
ctl + k: to cut
ctl + u: to paste
alt + u: to undo
alt + e: to redo
ctl + d: to delete a character after cursor
nano +20 pizza.txt: open file with nano
nano -v pizza.txt: view only mode
Other useful command
ctl + r: to read file
ctl + w: to find
ctl + /: to go to line
Leave a comment if you have any questions.
===========
Please keep in touch
Portfolio
Linkedin
Github
Youtube
This content originally appeared on DEV Community and was authored by Cheulong Sear