Quickly modify the hosts file under Windows system

Modifying the hosts file under Windows will encounter two problems:

  1. hosts file not found
  2. The hosts file cannot be modified

The hosts file can be found by:

dir /b/s %windir% | findstr etc\hosts

 

You can modify and save the hosts file in the following ways

  1. Open cmd with administrator privileges
  2. echo 192.168.1.101 hosts >> %windir%\...\host

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327058670&siteId=291194637