
r – it will allow you to replace the specific character. x – it will allow you to delete the specific character at the cursor.
cw – it will allow you to change the specific word. 4dw – it will allow you to delete 4 consecutive words. dw – it will allow you to delete the specific word. You can press the ESC key if you want to end insertion mode. C – it will allow you to delete the contents of a line just after the cursor and allow you to insert new text. D – it will allow you to delete the contents of the line just after the cursor. 3dd – it will allow you to delete 3 consecutive lines. dd – it will allow you to delete the specific line.
o – it will allow you to open a new line (goes into insert mode). U – it will allow you to undo all changes to the entire line. u – it will allow you to undo the last change. ESC – this will allow you to exit the insert mode. A – it will allow you to write at the end of the line (goes into insert mode). a – it will allow you to write just after the cursor (goes into insert mode). i – this command will allow you to Insert wherever your cursor is (goes into insert mode). It will speed up the editing process by entering direct commands. If you are working with the Vi editor, you must understand the VI Editor commands for seamless and efficient working. But if you provide a file name that does not exist, it will create a new file for you. If you provide the file name that exists already, then the Vi editor will open this file in editing mode for you. Once the terminal is open, you can type of below command to open the file in the Vi editor. You can open the Vi editor in the command-line terminal if you want to change a file. How to edit files in Linux via Vi editor? In this article, we will discuss how to edit file in Linux on various text editors and other command-line commands for making the desired file changes. Not only this, you can run various commands from the command-line interface for editing the files. For this, many text editors are available for carrying out easy changes. Linux system allows the users to make the required changes to the files. How to edit a File with Emacs Command Line Editor?
List of content you will read in this article: