Network - Modifying your Hosts File on Linux

Objective

Following these steps will modify the hosts file used on your Linux device.

Environment

Linux

Before You Begin

N/A

Steps

  1. Open the terminal window.
  2. Open the hosts file in a text editor (you can use any text editor) by typing the following line:
    • sudo nano /etc/hosts
  3. Enter your domain user password.
  4. Make the necessary changes to the file.
  5. Press Control-x.
  6. When ask if you want to save your changes, answer "y".

Additional Info

N/A