From 641aa555b98109dba7237d38684b89a1463f3f3f Mon Sep 17 00:00:00 2001 From: CallMeR <9463297+callmer@user.noreply.gitee.com> Date: Mon, 6 Jan 2025 17:54:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=B8=85=E7=90=86=E5=91=BD?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 03.PVE系统调整.md | 2 +- 05.PVE制作虚拟机模板.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/03.PVE系统调整.md b/03.PVE系统调整.md index 2f86bcf..91bc294 100644 --- a/03.PVE系统调整.md +++ b/03.PVE系统调整.md @@ -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 diff --git a/05.PVE制作虚拟机模板.md b/05.PVE制作虚拟机模板.md index 9538ed4..57c08bc 100644 --- a/05.PVE制作虚拟机模板.md +++ b/05.PVE制作虚拟机模板.md @@ -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