afm719 / Cloud-Computing-Arahi

0 stars 0 forks source link

Nano commands #5

Open afm719 opened 1 month ago

afm719 commented 1 month ago

Getting Started with Nano

Nano is a simple, command-line text editor in Ubuntu and other Linux distributions. It is especially useful for quick edits and configurations directly in the terminal.

Opening a File

To open a file with Nano, use the following command:

nano <filename>

Example:

nano /etc/hosts

If the file doesn't exist, Nano will create it for you when you save.


Basic Commands in Nano

Once you're inside Nano, the basic commands are displayed at the bottom of the screen. Here are the key ones you need to know:


Advanced Commands


Exit Without Saving

If you've made changes but don't want to save:


Search and Replace


Useful Tips