Re: [問題] 請問如何清除Gnome-terminal中輸入的指令
※ 引述《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點很重要 不然會被寫回去
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.36.16.129
推
11/07 08:06, , 1F
11/07 08:06, 1F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):