搜尋此網誌

2011年5月5日 星期四

linux 查詢歷史指令

.bash_history <==指令歷史檔存放位置
history 指令

n   :要列出最近的 n 筆命令列表


-c  :清除所有紀錄內容
-a  :設定存放路徑,預設值 ~/.bash_history
-r  :將 histfiles 的內容讀到目前這個 shell 的 history 記憶體中
-w  :將目前的 history 記憶內容寫入 histfiles 中

沒有留言:

張貼留言