mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-10-30 19:44:12 +08:00
更新清理命令
This commit is contained in:
1 parent
641aa555b9
commit
7d8da1f68e
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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'
|
$ 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
|
$ rm -rvf ~/.bash_history && history -c
|
||||||
|
|||||||
+1
-1
@@ -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 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
|
$ rm -rvf ~/.bash_history ~/.zsh_history ~/.zcompdump* && history -c
|
||||||
|
|||||||
Reference in new issue
Block a user