feat: 修改部分脚本目录
This commit is contained in:
40
bash/README.md
Normal file
40
bash/README.md
Normal file
@@ -0,0 +1,40 @@
|
||||
# Bash
|
||||
|
||||
## Linux
|
||||
|
||||
### 初始化脚本
|
||||
|
||||
```bash
|
||||
curl -sSL https://gitee.com/Sugarscat/script/raw/main/bash/init.sh | bash
|
||||
```
|
||||
|
||||
进行的操作有:
|
||||
|
||||
1. 更换软件源为 `清华大学源`;
|
||||
2. 更换DNS为 `114.114.114.114`,`223.5.5.5`;
|
||||
3. 设置时区 `Asia/Shanghai` 和时间同步
|
||||
|
||||
```bash
|
||||
curl -sSL https://gitee.com/Sugarscat/script/raw/main/bash/init-ali.sh | bash
|
||||
```
|
||||
|
||||
进行的操作有:
|
||||
|
||||
1. 更换软件源为 `阿里云源`;
|
||||
2. 更换DNS为 `114.114.114.114`,`223.5.5.5`;
|
||||
3. 设置时区 `Asia/Shanghai` 和时间同步
|
||||
|
||||
### Linux 系统清理脚本
|
||||
|
||||
```bash
|
||||
curl -sSL https://gitee.com/Sugarscat/script/raw/main/bash/clean.sh | bash
|
||||
```
|
||||
|
||||
进行的操作有:
|
||||
|
||||
1. 显示系统信息
|
||||
2. 清理旧的内核包和残留的配置文件
|
||||
3. 清理 /tmp 目录下的临时文件
|
||||
4. 清理 APT 缓存目录 /var/cache/apt/archives
|
||||
5. 清理用户缓存目录 ~/.cache
|
||||
6. 清理 systemd 日志 /var/log/journal
|
||||
Reference in New Issue
Block a user