Categories
Linux Server Administration Tips

How to quit vi editor?

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?!

By Yang Yang

Hello, I'm Yang. I build online businesses that please people. Want to join in and post some useful articles on Kavoir.com? Shoot me a message.