Shell 脚本的学习笔记和一些常用脚本

持续更新中 …

Github Repo: https://github.com/morooi/shell-script

学习记录

TO DO

常用脚本

快速安装 Trojan-go

trojan-go-quickstart.sh

1
2
3
4
5
6
7
8
# 使用 root 用户运行,或添加 sudo
wget -N --no-check-certificate "https://raw.githubusercontent.com/morooi/shell-script/master/trojan-go-quickstart.sh"
chmod +x trojan-go-quickstart.sh
./trojan-go-quickstart.sh
# 或
bash <(wget -qO- https://raw.githubusercontent.com/morooi/shell-script/master/trojan-go-quickstart.sh)
# 或
bash <(curl -sL https://raw.githubusercontent.com/morooi/shell-script/master/trojan-go-quickstart.sh)

如果无法连接,使用如下

1
2
3
4
5
6
7
8
# 使用 root 用户运行,或添加 sudo
wget -N --no-check-certificate "https://cdn.jsdelivr.net/gh/morooi/shell-script/trojan-go-quickstart.sh"
chmod +x trojan-go-quickstart.sh
./trojan-go-quickstart.sh
# 或
bash <(wget -qO- https://cdn.jsdelivr.net/gh/morooi/shell-script/trojan-go-quickstart.sh)
# 或
bash <(curl -sL https://cdn.jsdelivr.net/gh/morooi/shell-script/trojan-go-quickstart.sh)

安装 zsh 和 oh-my-zsh

install-zsh.sh

1
2
3
4
5
6
7
wget -N --no-check-certificate "https://raw.githubusercontent.com/morooi/shell-script/master/install-zsh.sh"
chmod +x install-zsh.sh
./install-zsh.sh
# 或
bash <(wget -qO- https://raw.githubusercontent.com/morooi/shell-script/master/install-zsh.sh)
# 或
bash <(curl -sL https://raw.githubusercontent.com/morooi/shell-script/master/install-zsh.sh)

如果无法连接,使用如下

1
2
3
4
5
6
7
wget -N --no-check-certificate "https://cdn.jsdelivr.net/gh/morooi/shell-script/install-zsh.sh"
chmod +x install-zsh.sh
./install-zsh.sh
# 或
bash <(wget -qO- https://cdn.jsdelivr.net/gh/morooi/shell-script/install-zsh.sh)
# 或
bash <(curl -sL https://cdn.jsdelivr.net/gh/morooi/shell-script/install-zsh.sh)

Shell 脚本的学习笔记和一些常用脚本

https://morooi.cn/2020/shell-script/

作者

SJ Zhou

发布于

2020-06-29

更新于

2021-01-06

许可协议

评论