Nano Text Editor
Nano is the most basic and easiest text editor used in the Linux operating system. It comes pre-installed in most Linux distributions. It is a free open-source text editor which is mostly used by new learner because it has some common command that is used in operations. Nano has great features such as:
- Undo/redo
- File locking
- Line number
- Interactive search and replace
- Syntax coloring
- Backup files
Pros of Nano
- No need for learning and free to use,
- Great tool for new learners.
- Easy to edit a file.
Cons of Nano
- It is not sufficient for the complicated task.
- It has no support for powerful features such as window splitting, text autocorrection, etc.
Examples of Nano
Step 1: We can use the nano text editor using the nano command
nano gfg.txt
Step 2: There are some options used for nano:
- Ctrl + O: To save a file
- Ctrl + X: To exit a file and it will prompt to save a file if you made changes
- Ctrl + C: To show the current cursor position present under the text
- Ctrl + W: To search for specific phrases
- Ctrl + \ : To replace word