更新清理命令

This commit is contained in:
CallMeR
2025-01-06 17:54:23 +08:00
parent 34e55b8daa
commit 641aa555b9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -634,7 +634,7 @@ PVE 系统配置完成后,可执行以下命令,对系统进行清理。
$ apt clean && apt autoclean && apt autoremove --purge
## 清理系统缓存
$ rm -rvf /var/cache/apt/* /var/lib/apt/lists/* /tmp/*
$ bash -c 'find /var/cache/apt /var/lib/apt/lists /tmp -type f -print -delete'
## 清理系统日志
$ find /var/log/ -type f -print -delete
+1 -1
View File
@@ -452,7 +452,7 @@ Debian 模板虚拟机已经配置完成,在将其转换为模板前需要对
$ sudo bash -c 'apt clean && apt autoclean && apt autoremove --purge'
## 清理系统缓存
$ sudo rm -rvf /var/cache/apt/* /var/cache/smartdns/* /var/lib/apt/lists/* /tmp/*
$ 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