1
0
mirror of synced 2024-07-07 20:45:13 +08:00
This commit is contained in:
xueweihan 2023-03-13 09:50:37 +08:00
parent f7fea04deb
commit 497809932b

View File

@ -87,11 +87,11 @@ hosts 文件在每个系统的位置不一,详情如下:
### 2.3 一行命令 (适用于类 Unix 系统)
# for GNU sed (Ubuntu/CentOS/Fedora)
#### GNUUbuntu/CentOS/Fedora
`sed -i "/# GitHub520 Host Start/Q" /etc/hosts && curl https://raw.hellogithub.com/hosts >> /etc/hosts`
# for BSD/macOS sed
#### BSD/macOS
`sed -i "" "/# GitHub520 Host Start/,/# Github520 Host End/d" /etc/hosts && curl https://raw.hellogithub.com/hosts >> /etc/hosts`