When you want to edit host file on Windows, MacOS, Linux or Ubuntu, you need to know the location first. Though it is very easy to find, sometimes, it can be tricky and take more time from you. With this in mind, I have made this post where the host file location on Windows 7, 8/8.1,10, MAC, Linux, and Ubuntu. That means you will get the location of the host file for all the popular OS.
Important to realize, Host File is the system file which helps you to control the access to your PC. If you want to block any website to visit on your PC, you can do it easily by editing the host file. For this reason, it is very helpful to make multi-control home PC. For this reason, we will learn how can you find the location of the host file on Windows, MacOS, Linux or Ubuntu.
Where are the Host File Location:
I have described the host file location on every OS here. You can take with your desired OS including Windows 7, 8/8.1,10, MAC, Linux, and Ubuntu. Let’s get the location of the host file.
You will get host file on Windows 10 by going the following location:
You can also get the host file with one click only with the use of RUN. How?
Open RUN (Ctrl+R) and type the above file location. It will take you to the host file page.
Following the Windows 10, you can find the host file location in Windows 8/8.1. The Procedure is same. That means go to the location on-
At the same time, you can also get the host file by typing the above location on RUN and it will bring you as like shortcut command of the host file.
Windows 7 and Vista:
You can get the host file location on Windows 7 by doing the same command on the above. The Location is-
But in Windows 7, it is very easy to get the location of Host file by typing the address on RUN.
How will you find the location of the Host File manually In Windows:
- First Go to My PC/My Computer
- Open C Drive (Local Disk C)
- Go to Windows
- Go to System 32
- Go to Drivers
- At last, go to etc and here is the hosts file
Check the above screenshot, you will realize the procedures easily.
Host File Location MacOS:
Now if you want to edit host file on Mac OS, you have to find out it first. Let’s see the Host File Location on MacOS.
“Finder>Applications>UtilitiesTerminal>administrator password>sudo nano /etc/hosts”
So total Process is Max OS:
- First Open a Finder Window
- From the sidebar select the Applications window
- Double-click on Utilities.
- Double-click on Terminal. (Here you will need to give the Administrative Password to access the Terminal)
- Now type sudo nano /etc/hosts and Write return to find the Host file Location.
Host File Location Linux:
You will find Host File Location on Linux by the following the below command.
“sudo nano /etc/hosts”
So the total Process is Linux:
- First The Terminal Window
- Write the above command “sudo nano /etc/hosts”
- Now you Will Find the Host File Here
Host File Location Ubuntu:
You can find the host file on Ubuntu by following the below command.
“sudo -i gedit /etc/hosts”
So the Total Process in Ubuntu is:
- Open a Terminal Window
- and type the command “sudo -i gedit /etc/hosts”
- Here is the host file on Ubuntu and do what you want.
Editor’s Note From TechyPi:
At last, I will tell we get the huge request from the users “Where is the Host File Location.” I think now you will get the solution on Windows 10, 8/8.1, 7, Mac OS, Linux and Ubuntu as well.
If you get any problem, ask us from the comment section. At the same time, if you get the article helpful, express your love by sharing it on your favorite social media. All the best wishes.