What is the hosts file Ubuntu? The hosts file is an extremely useful albeit small text file that stores host names with associated IP addresses. It is basically a mapping from hostnames to IP addresses. Any network protocol uses this mapping to convert hostnames to numeric IP addresses.
Where is hosts file located in Linux? The Linux Hosts File’s Location
On Linux, you can find the hosts file under /etc/hosts. Since it’s a plain text file, you can open the hosts file using your preferred text editor. Since the hosts file is a system file, you’ll need administrative rights to save changes.
Where do I find my hosts file? Windows users
In Windows 10 the hosts file is located at c:WindowsSystem32Driversetchosts. Right click on Notepad in your start menu and select “Run as Administrator”. This is crucial to ensure you can make the required changes to the file.
How do I access the ETC hosts in Ubuntu?