Basic Linux command (nano)

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-wr…


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

nano

ctl + o: to save
ctl + x: to exit

1

ctl + : to replace

2

ctl + j: to justify text
ctl + c: to show the location of the cursor

3

alt + a: set mark
alt + 6: to copy

4

ctl + k: to cut
ctl + u: to paste
alt + u: to undo
alt + e: to redo

5

ctl + d: to delete a character after cursor

6

nano +20 pizza.txt: open file with nano

7

nano -v pizza.txt: view only mode

8

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


Print Share Comment Cite Upload Translate Updates
APA

Cheulong Sear | Sciencx (2025-08-04T10:43:00+00:00) Basic Linux command (nano). Retrieved from https://www.scien.cx/2025/08/04/basic-linux-command-nano/

MLA
" » Basic Linux command (nano)." Cheulong Sear | Sciencx - Monday August 4, 2025, https://www.scien.cx/2025/08/04/basic-linux-command-nano/
HARVARD
Cheulong Sear | Sciencx Monday August 4, 2025 » Basic Linux command (nano)., viewed ,<https://www.scien.cx/2025/08/04/basic-linux-command-nano/>
VANCOUVER
Cheulong Sear | Sciencx - » Basic Linux command (nano). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/08/04/basic-linux-command-nano/
CHICAGO
" » Basic Linux command (nano)." Cheulong Sear | Sciencx - Accessed . https://www.scien.cx/2025/08/04/basic-linux-command-nano/
IEEE
" » Basic Linux command (nano)." Cheulong Sear | Sciencx [Online]. Available: https://www.scien.cx/2025/08/04/basic-linux-command-nano/. [Accessed: ]
rf:citation
» Basic Linux command (nano) | Cheulong Sear | Sciencx | https://www.scien.cx/2025/08/04/basic-linux-command-nano/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.