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

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點很重要 不然會被寫回去

--

All Comments

Carolina Franco avatarCarolina Franco2011-11-08
已經清除了~~謝謝~