diff --git a/03.PVE系统调整.md b/03.PVE系统调整.md index 91bc294..cb26906 100644 --- a/03.PVE系统调整.md +++ b/03.PVE系统调整.md @@ -637,7 +637,7 @@ $ apt clean && apt autoclean && apt autoremove --purge $ bash -c 'find /var/cache/apt /var/lib/apt/lists /tmp -type f -print -delete' ## 清理系统日志 -$ find /var/log/ -type f -print -delete +$ bash -c 'find /var/log/ -type f -print -delete' ## 清理命令历史记录文件 $ rm -rvf ~/.bash_history && history -c diff --git a/05.PVE制作虚拟机模板.md b/05.PVE制作虚拟机模板.md index 57c08bc..271b3a0 100644 --- a/05.PVE制作虚拟机模板.md +++ b/05.PVE制作虚拟机模板.md @@ -455,7 +455,7 @@ $ sudo bash -c 'apt clean && apt autoclean && apt autoremove --purge' $ 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 bash -c 'find /var/log/ -type f -print -delete' ## 清理命令历史记录文件 $ rm -rvf ~/.bash_history ~/.zsh_history ~/.zcompdump* && history -c