How To Use Vi In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Open the terminal (Ctrl+Alt+T) and type the command vi followed by the name of the file you wish to edit or create.
2. To enter the command mode, press the Esc key.
3. To move around the file, you can use the arrow keys.
4. To edit the file, press the i key to enter the insert mode.
5. To save the file, press Esc and then type :w followed by Enter.
6. To quit vi, press Esc and then type :q followed by Enter.