Is there any command to delete bash command history?
What's the command to delete bash command history?
Not this: Code:
echo "">.bash_history |
Hi,
history -c, that is assuming you use bash (which it looks like). Hope this helps. |
histroy -d "command number" in case you want to delete a specific entery
|
Edit your .bashrc and add
HISTFILESIZE=0 HISTSIZE=0 Of course, you will not be able to use the up-arrow to retrieve your previous command. OR set HISTSIZE to something that will allow minimum exposure. |
Thanks everybody for your replies.
|
All times are GMT -5. The time now is 06:34 AM. |