Tuesday , October 24 2017
Home / Linux / How to Edit Linux Ubuntu Hosts File

How to Edit Linux Ubuntu Hosts File

How to Edit Linux Ubuntu Hosts File

  1. Open putty for windows or terminal or your webserver
  2. login to your server
  3. input : sudoedit /etc/hosts
  4. Enter your password.
  5. Make the necessary changes to the file.
  6. Press Ctrl X
  7. When asked if you want to save your changes, answer y (yes) or n (no).

Check Also

Quit the vi editor without saving the changes

Tutorial of How to quit the vi editor without saving any changes you’ve made: See …

Leave a Reply

Your email address will not be published. Required fields are marked *

*