Network - Modifying your Hosts File on Linux

Summary

This article provides information on how to modify your hosts file on Linux

Body

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

Details

Details

Article ID: 1461
Created
Mon 4/24/23 2:14 PM
Modified
Mon 7/10/23 4:06 PM