## 常用
* [x] 刪除history記錄
history命令詳細情況
```
$ help history
Options:
-c clear the history list by deleting all of the entries
-d offset delete the history entry at position OFFSET.
-a append history lines from this session to the history file
-n read all history lines not already read from the history file
and append them to the history list
-r read the history file and append the contents to the history
list
-w write the current history to the history file
-p perform history expansion on each ARG and display the result
without storing it in the history list
-s append the ARGs to the history list as a single entry
```
* `history -c` 命令,即清除所有歷史記錄,這種比較粗暴,慎用。
* 部分刪除操作
* `vim ~/.bash_history`。該文件即為歷史記錄存儲文件,我們隨意修改
* 修改后再次 `history `查看,發現并沒有變化。原因:緩存。執行:`history -r `
* 重新打開shell
* 讀取歷史文件并將其內容添加到歷史記錄中,即重置文件里的內容到內存中,完成修改!
* [x] fdsf
- 基礎
- 1、命令幫助
- 2、磁盤管理
- 3、打包/ 壓縮
- 4、進程管理工具
- 5、網絡工具
- 6、常用命令
- 命令
- 1、Linux系統如何查看是多少位的
- 2、uptime命令
- 3、gpasswd 命令詳解
- 4、sed命令
- 5、awk命令
- 常用命令
- 文件權限
- 6、Linux用戶和用戶組管理
- 問題總結
- 1、安裝包
- 2、PHP編譯安裝時常見錯誤解決辦法
- 3、ubuntu源碼編譯安裝php常見錯誤解決辦法
- 4、文件權限中 chmod、u+x、u、r、w、x分別代表什么
- 5、修改文件權限命令chmod、chgrp、chown詳解
- 6、vim 選中多行批量縮進
- 7、gpasswd 和 usermod 的區別
- Ubuntu系統
- 1、自帶防火墻ufw配置和用法
- 2、常見錯誤解決
- 3、常用命令
- 了解nohup和&的功效
- 1.0 系統簡介
- 2.0 系統安裝
- 3.0 常用命令
- 4.0 Linux 服務管理
- 5.0 Linux 系統管理
- 6.0 Linux 權限管理之特殊權限
- 7.0 Linux 權限管理之基本權限
- 8.0 Linux 軟件安裝管理
- 9.0 Linux 網絡管理
- 10.0 Shell編程之條件判斷與流程控制
- 11.0 Shell編程之正則表達式
- 12.0 Shell編程之環境變量配置文件