jsrghuangdog / smarthosts

Automatically exported from code.google.com/p/smarthosts
0 stars 0 forks source link

推荐一个简单的更新hosts的方法 for Unix commands #109

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
#!/bin/bash
sudo mv /etc/hosts /etc/hosts.bak
wget https://smarthosts.googlecode.com/svn/trunk/hosts
sudo mv hosts /etc/hosts

做成.SH 就好。
iOS用户,可以在JB之后,安装terminal 
来进行,也可以先在iOS设备安装wget后,ssh到iOS上进行更新。

Original issue reported on code.google.com by raink....@gmail.com on 23 Jan 2012 at 8:18

GoogleCodeExporter commented 8 years ago
你好,是做成文本文档然后修改为.sh?
请教详细操作,谢谢.

Original comment by xiejun...@gmail.com on 13 Apr 2012 at 4:25

GoogleCodeExporter commented 8 years ago

Original comment by azly...@gmail.com on 29 Aug 2012 at 8:42