How Do I Save and Exit in Linux?

How Do I Save and Exit in Linux?
Contents

Press the [Esc] key and type Shift + Z Z to save and exit or type Shift+ Z Q to exit without saving the changes made to the file.

How do you save in Linux terminal?

2 Answers

  1. Press Ctrl + X or F2 to Exit. You will then be asked if you want to save.
  2. Press Ctrl + O or F3 and Ctrl + X or F2 for Save and Exit.

20 июл. 2015 г.

How do I close and save a file in Linux terminal?

To save a file, you must first be in Command mode. Press Esc to enter Command mode, and then type :wq to write and quit the file. The other, quicker option is to use the keyboard shortcut ZZ to write and quit. To the non-vi initiated, write means save, and quit means exit vi.

Robert Thorne
Author

Robert Thorne

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.