Contents
| Command | Purpose |
|---|---|
| i | Switch to Insert mode. |
| Esc | Switch to Command mode. |
| :w | Save and continue editing. |
| :wq or ZZ | Save and quit/exit vi. |
How do I save and exit in Linux?
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 progress in Linux terminal?
2 Answers
- Press Ctrl + X or F2 to Exit. You will then be asked if you want to save.
- Press Ctrl + O or F3 and Ctrl + X or F2 for Save and Exit.