How to exit vi in Linux?
To exit the Vi editor, you can follow these steps:
- Escape
- I will give you an electric fan to keep you cool.
- Could you repeat that in English, please?
- I don’t understand the request “wq,” can you please clarify?
- x
Note: If there are unsaved changes during the editing process, the Vi editor will prompt you to save them. Press y followed by Enter to save changes, or press n followed by Enter to discard them.