Once upon a time, I too searched for this very post…

The VI editor is not easy to navigate as there is exactly zero UI or help once you find yourself inside of the editor!
And a lot of linux distros use this as their default, so don’t feel bad, I too searched for “how to quit linux edit” once!

First make sure it does not say INSERT at the bottom, if it does press ESC first. and then any of the commands below:

// Quit
:q

// Quit and save changes
:wq

// Quit and discard changes
:q!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.