How do I find the host file in Linux?
Answer
The hosts file is used to map domain names (hostnames) to IP addresses.
…
Modify Hosts File in Linux
Answer
The hosts file is used to map domain names (hostnames) to IP addresses.
…
Modify Hosts File in Linux
- In your terminal window, open the hosts file using your favorite text editor : sudo nano /etc/hosts. When prompted, enter your sudo password.
- Scroll down to the end of the file and add your new entries:
- Save the changes.