Articles → Linux → Vi Editor In Linux
Vi Editor In Linux
Purpose
Work On The Vi Editor
- Open "MobaXTerm".
- Click on the "Session" button.
Click to Enlarge
- A pop-up window will appear. Click on the SSH button.
- Enter the "Remote host", "UserName" and "private key". Click on the "Ok" button.
Click to Enlarge
- If you are not a root user then you can execute the following command to switch to the root user.
- Enter the following command to create a new file.
- Write the following command to open the text file in the insert mode.
- The file is opened in the edit mode.
Click to Enlarge
- To save and close the file, use the following command.
Check The Content Of The Text File
Click to Enlarge