Contents
How do I save an editor in Linux?
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.
…
More Linux resources.
| 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 you save in text editor?
To save the file and exit the editor simultaneously, press Esc to switch to normal mode, type :wq and hit Enter .
- Press Esc.
- Type :wq.
- Press Enter.
2 окт. 2020 г.