To exit and quit vi text editor, you need to type:
:q
To save the changes you have made and quit:
:wq
To discard the changes and quit without saving the file:
:q!
What? You have no idea what I’m talking about?!
To exit and quit vi text editor, you need to type:
:q
To save the changes you have made and quit:
:wq
To discard the changes and quit without saving the file:
:q!
What? You have no idea what I’m talking about?!