Glam Prestige Journal

Bright entertainment trends with youth appeal.

I am doing a Linux installation. I installed the system fine and am trying to change the vi /etc/hosts file. I have edited the file but am not sure how to save it.

I have --INSERT-- showing at the bottom.

2 Answers

First press ESC so you get back to command mode, then do.

:x (quit and save)

or

:w
and
:q

or

:wq
2

You can also use the shortcut Shift-Z-Z from command mode (as Anders said, press Esc to exit Insert mode and return to Command mode) to save and exit to the command prompt.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy