码迷,mamicode.com
首页 > Windows程序 > 详细

在Linux/Windows系统上编辑/etc/hosts文件

时间:2016-11-18 17:48:42      阅读:223      评论:0      收藏:0      [点我收藏+]

标签:nal   windows系统   hosts   input   sys   系统   command   sts   cli   

Linux ubuntu16

open the terminal, input the command:

  sudo -i gedit /etc/hosts file

click enter key, then input your password, click enter key, the hosts file will be open, now you can edit it.

Windows (win7/win8)

  C:\Windows\System32\driver\etc\hosts

open the hosts, now you can edit it.

 

在Linux/Windows系统上编辑/etc/hosts文件

标签:nal   windows系统   hosts   input   sys   系统   command   sts   cli   

原文地址:http://www.cnblogs.com/woniu123/p/6078356.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!