Home > Computer Tutorials > Troubleshooting > Where is the storage path of the Hosts file in Win11 system?

Where is the storage path of the Hosts file in Win11 system?

WBOY
Release: 2024-01-29 21:36:29
forward
1835 people have browsed it

Where is the storage path of the Hosts file in Win11 system?

How to find the location of the Hosts file in Win11 system? The Hosts file is an important file in the Windows operating system and is used to map domain names and IP addresses. In Win11 system, finding the location of the Hosts file is very simple. First, open the resource manager and click the search box in the upper left corner; then, enter "C:\Windows\System32\drivers\etc\hosts" in the search box and click the search button; finally, the system will display the location of the Hosts file , click to open the file. Through the above steps, you can easily find the Hosts file in the Win11 system and edit the contents to achieve customized domain name resolution.

The Hosts file is a text file used to map IP addresses and domain names. It can be used to block advertisements, accelerate access and other functions. In the Windows 11 system, the location of the Hosts file has changed. Here is how to find the location of the Hosts file.

Method 1: Use File Explorer to find the Hosts file location

1. Open File Explorer, which can be opened by pressing the Win E shortcut key or clicking the folder icon on the taskbar. .

2. Enter the following path in the address bar of File Explorer: C:\Windows\System32\drivers\etc

3. In the etc folder, you will be able to find the name The file for "hosts". This is the Hosts file.

Method 2: Use the command prompt to find the Hosts file location

1. Open the command prompt by pressing the Win R shortcut key, then enter "cmd" and press the Enter key Come open.

2. Enter the following command in the command prompt window and press Enter: cd C:\Windows\System32\drivers\etc

3. Enter the dir command and press Enter Press the car key and you will be able to see a file named "hosts". This is the Hosts file.

Method 3: Use Notepad to open the Hosts file

1. Open Notepad by pressing the Win R shortcut key, then typing "notepad" and pressing the Enter key.

2. Click the "File" menu in Notepad, and then select "Open".

3. In the Open File dialog box, set the file type to "All Files" and navigate to the following path: C:\Windows\System32\drivers\etc

4. In etc folder, select the "hosts" file, and then click the "Open" button.

Through the above three methods, you can easily find the location of the Hosts file in the Win11 system. Whether you want to edit the Hosts file or view its contents, you can find it using these methods. Please note that you need to be careful when editing the Hosts file to make sure not to delete or modify content that should not be changed, so as not to affect the normal operation of the system.

The above is the detailed content of Where is the storage path of the Hosts file in Win11 system?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:jikegou.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template