| 92 | | === nano and Vim === |
| | 92 | === nano === |
| | 93 | |
| | 94 | Nano, text editor is a user-friendly, free and open-source text editor that usually comes pre-installed in modern Linux systems. |
| | 95 | It is easy to use command line text editor for Unix and Linux operating systems. It includes all the basic functionality you'd expect from a regular text editor, like syntax highlighting, multiple buffers, search and replace with regular expression support, spellchecking, UTF-8 encoding, and more. |
| | 96 | |
| | 97 | 1. To create and open a new file. |
| | 98 | |
| | 99 | `$nano new_filename` |
| | 100 | |
| | 101 | 2. To save a file |
| | 102 | |
| | 103 | `press Ctrl+o` |
| | 104 | |
| | 105 | 3. To cut paste in a file. |
| | 106 | |
| | 107 | `Ctrl+k` is used to cut and `Ctrl+u` is used to paste the text. |
| | 108 | |
| | 109 | 4. To search a word in a file. |
| | 110 | |
| | 111 | `Ctrl+w` |
| | 112 | |
| | 113 | 5. To enable spell check in nano. First, install the spell check package. |
| | 114 | |
| | 115 | `$sudo apt install spell` |
| | 116 | |
| | 117 | - To do spell check first press Ctrl+t |
| | 118 | - Now it will ask you to replace the incorrect words |
| | 119 | - Enter the word to replace with there |
| | 120 | - As soon as you will press the enter key |
| | 121 | === Vim === |
| | 122 | |
| | 123 | Vim is a mode-based editor. |