Question - How to exit from vi editors?
Answer -
We can use two commands to exit from the vi editor. They are
- Wq: wq command saves the current work and exits from the vi editor.
- q!: q! The command does not save the current work, but it exits from the vi editor.