How do I find the host file in Linux?

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
  1. In your terminal window, open the hosts file using your favorite text editor : sudo nano /etc/hosts. When prompted, enter your sudo password.
  2. Scroll down to the end of the file and add your new entries:
  3. Save the changes.
2 дек. 2019 г.
 

Tìm kiếm

Back
Top