Update README.md
sudo -i, 防止 permission denied 报错
This commit is contained in:
@@ -135,7 +135,9 @@ hosts 文件在每个系统的位置不一,详情如下:
|
|||||||
|
|
||||||
#### GNU(Ubuntu/CentOS/Fedora)
|
#### GNU(Ubuntu/CentOS/Fedora)
|
||||||
|
|
||||||
|
`sudo -i`
|
||||||
`sed -i "/# GitHub520 Host Start/Q" /etc/hosts && curl https://raw.hellogithub.com/hosts >> /etc/hosts`
|
`sed -i "/# GitHub520 Host Start/Q" /etc/hosts && curl https://raw.hellogithub.com/hosts >> /etc/hosts`
|
||||||
|
`exit`
|
||||||
|
|
||||||
#### BSD/macOS
|
#### BSD/macOS
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user