search
HomeCommon ProblemHow to modify the hosts file

How to modify the hosts file

Apr 28, 2021 pm 04:14 PM
hostsdocument

Modification method: 1. Open the powershell interface and execute the "notepad" command to enter the notepad interface; 2. In the menu bar, click "File" - "Open"; 3. In the pop-up window, Select to open the hosts file in the etc directory of the c drive; 4. In the editing interface, modify the hosts file and save it.

How to modify the hosts file

#The operating environment of this article: windows10 system, thinkpad t480 computer.

How to modify the hosts file:

First hold down the "windows x" key and select Windows Powershell (Administrator) from the menu that pops up in the lower right corner of the computer desktop

How to modify the hosts file

In the opened powershell interface, execute the "notepad" command, and the notepad interface will appear.

How to modify the hosts file

Click "File" on the Notepad interface, then click "Open" and find the path c:\windows\system32\drivers\etc\ in the pop-up window. After finding it, you can see that the directory is blank. Click Select Files in the lower right corner and click All Files.

How to modify the hosts file

The hosts file will appear in front of you, click on the hosts file, and then click Open in the lower right corner. The editing page of the hosts file will pop up, where you can add the IP address and host name you need.

How to modify the hosts file

#After adding it, you can directly press ctrl s to save, so that the Hosts file will be modified successfully.

Related recommendations: windows system

The above is the detailed content of How to modify the hosts file. For more information, please follow other related articles on the PHP Chinese website!

Statement
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools