更新清理缓存命令

This commit is contained in:
CallMeR
2024-10-09 23:43:17 +08:00
parent 49083bf184
commit 557ae16217
+1 -1
View File
@@ -444,7 +444,7 @@ Debian 模板虚拟机已经配置完成,在将其转换为模板前需要对
$ sudo bash -c 'apt clean && apt autoclean && apt autoremove --purge' $ sudo bash -c 'apt clean && apt autoclean && apt autoremove --purge'
## 清理系统缓存 ## 清理系统缓存
$ sudo bash -c 'rm -rvf /var/cache/apt/* /var/cache/smartdns* /var/lib/apt/lists/* /tmp/* 2>/dev/null || true' $ sudo bash -c 'find /var/cache/apt /var/cache/smartdns /var/lib/apt/lists /tmp -type f -print -delete'
## 清理系统日志 ## 清理系统日志
$ sudo find /var/log/ -type f -print -delete $ sudo find /var/log/ -type f -print -delete