![]() You can combine this command with CTRL + K to cut a specific part of the text to the cut buffer. Lets you go to the specified line and column number. It prompts a save request if you made any changes to the file. Opens a file and inserts it at the current cursor position. Shows the current cursor position in the text (line/column/character). To paste the text from the cut buffer into the selected line. It cuts the entire selected line to the cut buffer (similar to clipboard). Press ALT + W to search for the same phrase again. Search for a specified phrase in your text. Nano will ask you to edit or verify the desired file name. Lets you jump to the beginning of the line.Ī Help window will pop out and show you all the available commands. We have compiled the most useful commands to help you utilize the Nano text editor more effectively. If you want to paste the text, navigate to the intended place and press CTRL + U. ![]() To cut the highlighted text, press CTRL + K.Press ALT + 6 to copy the selected text to the clipboard.Then, you can move over the text with arrow keys. To select text, go to the beginning of the desired text and press ALT + A.These are the commonly used shortcuts when editing a text in Nano. Should you want to go back after typing a shortcut, just use CTRL + C to cancel the current process. You can press Y to replace one text or A to replace all instances. The editor will then take you to the first instance of the text. If your goal is to find and replace a text, press CTRL+W and then CTRL+R to enter the text that you want to search and the text that will replace it. To continue searching for the same text string, use ALT + W. The command will be like this: sudo nano -w /etc/apache2/nf How to Search and Replace Text If you don’t use this option, nano will wrap the text to fit the display by default. It will open the file in a standard format. Take note that whenever you are opening an important configuration file, it is recommended to use the -w option. ![]() But if there are no changes, you will exit the editor right away. Input Y for Y es, or N for No, then press Enter. If there are changes, it will ask you whether to save them or not.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |