How to run a vi script command on Linux?
To run a vi script command on Linux, follow these steps.
- Open the terminal.
- view file name
- Press the “i” key in the vi editor to enter insert mode, then type in your script commands.
- Press the Esc key to exit insert mode.
- Please save and exit the program by typing “:wq”.
- Change the file name to be executable.
- run the file
These steps will help you to edit and run vi script commands.