...
Once in this folder, find the file called "hosts." If you do not see this file, make sure you have selected the option to view "All Files" instead of the default option which is normally set to "Text Documents (*.txt)" - You will find this option right above the "Open" and "Cancel" buttons in the lower right hand corner of the file explorer within Notepad. Once you see the hosts file, double-click on it to begin editing.
Linux
In most Linux distros including Ubuntu, the hosts file can be edited directly in the terminal using Vim, Nano, or your favorite text editor. Please note that in order to edit the hosts file you need to open it as root. For example:
| Code Block | ||
|---|---|---|
| ||
user@system:~$ sudo vim /etc/hosts |
B) Editing the hosts file
Now that you are editing the hosts file, go to the last line of the file and add the following line:
...