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.
How do I save my config file?
Save a Configuration File to a Local or Network Drive
- Select File > Save > As File. You can also use CTRL-S. A standard Windows save file dialog box appears.
- Type the name of the file.
How do I save a configuration file in Terminal?
For instance to save a file, press Ctrl+O. To edit any config file, simply open the Terminal window by pressing the Ctrl+Alt+T key combinations. Navigate to the directory where the file is placed. Then type nano followed by the filename that you want to edit.