How do you save a shell script?
Answer
Once you have modified a file, press [Esc] shift to the command mode and press :w and hit [Enter] as shown below. To save the file and exit at the same time, you can use the ESC and
key and hit [Enter] . Optionally, press [Esc] and type Shift + Z Z to save and exit the file.
Answer
Once you have modified a file, press [Esc] shift to the command mode and press :w and hit [Enter] as shown below. To save the file and exit at the same time, you can use the ESC and
key and hit [Enter] . Optionally, press [Esc] and type Shift + Z Z to save and exit the file.