mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 22:12:51 +08:00
整合清理命令
This commit is contained in:
+1
-4
@@ -580,10 +580,7 @@ $ rm -rvf /var/cache/apt/* /var/lib/apt/lists/* /tmp/*
|
|||||||
$ find /var/log/ -type f | xargs rm -rvf
|
$ find /var/log/ -type f | xargs rm -rvf
|
||||||
|
|
||||||
## 清理命令历史记录文件
|
## 清理命令历史记录文件
|
||||||
$ rm -rvf ~/.bash_history
|
$ rm -rvf ~/.bash_history && history -c
|
||||||
|
|
||||||
## 清理命令历史
|
|
||||||
$ history -c
|
|
||||||
```
|
```
|
||||||
|
|
||||||
至此 PVE 的系统调整已经完成。
|
至此 PVE 的系统调整已经完成。
|
||||||
|
|||||||
+1
-4
@@ -450,10 +450,7 @@ $ sudo rm -rvf /var/cache/apt/* /var/lib/apt/lists/* /tmp/*
|
|||||||
$ sudo find /var/log/ -type f | xargs sudo rm -rvf
|
$ sudo find /var/log/ -type f | xargs sudo rm -rvf
|
||||||
|
|
||||||
## 清理命令历史记录文件
|
## 清理命令历史记录文件
|
||||||
$ rm -rvf ~/.bash_history ~/.zsh_history
|
$ rm -rvf ~/.bash_history ~/.zsh_history && history -c
|
||||||
|
|
||||||
## 清理命令历史
|
|
||||||
$ history -c
|
|
||||||
|
|
||||||
## 关闭系统
|
## 关闭系统
|
||||||
$ sudo shutdown now
|
$ sudo shutdown now
|
||||||
|
|||||||
Reference in New Issue
Block a user