請問如何清除Gnome-terminal中輸入的指令 - Linux

By Skylar DavisLinda
at 2011-11-07T00:14
at 2011-11-07T00:14
Table of Contents
※ 引述《qroqrota (qroqrota)》之銘言:
: 請問板上的前輩,
: 一般在CentOS下的Gnome-terminal輸入過的指令可以用上下鍵使其重現,
: 請問有什麼方法才能把這些輸入過的資料清除呢?
來源:http://www.infohit.net/blog/post/clear-bash-history.html
1. Make sure you have only one bash instance open with your username
2. Use
history -c && rm -f ~/.bash_history
3. Your done!
--
第1點很重要 不然會被寫回去
--
: 請問板上的前輩,
: 一般在CentOS下的Gnome-terminal輸入過的指令可以用上下鍵使其重現,
: 請問有什麼方法才能把這些輸入過的資料清除呢?
來源:http://www.infohit.net/blog/post/clear-bash-history.html
1. Make sure you have only one bash instance open with your username
2. Use
history -c && rm -f ~/.bash_history
3. Your done!
--
第1點很重要 不然會被寫回去
--
Tags:
Linux
All Comments

By Carolina Franco
at 2011-11-08T23:33
at 2011-11-08T23:33
Related Posts
請問如何清除Gnome-terminal中輸入的指令

By Iris
at 2011-11-06T23:57
at 2011-11-06T23:57
請問一下在vm下host、guest如何互連

By Oscar
at 2011-11-06T21:16
at 2011-11-06T21:16
請問鳥哥的伺服器架站這本書

By Freda
at 2011-11-06T20:44
at 2011-11-06T20:44
請問上傳網頁的問題??

By Cara
at 2011-11-06T19:55
at 2011-11-06T19:55
ftp 登入路徑問題???

By Candice
at 2011-11-06T17:25
at 2011-11-06T17:25