Reputation: 2725
If we want to remove one command from history we can use,
For Example,
export HISTIGNORE="ls" -> It will remove the ls command from history.
But I want to know how to ignore more than one commands from history?
Thanks in Advance.
Upvotes: 1
Views: 427
Reputation: 212885
Input the list with commands separated by colons:
export HISTIGNORE="&:ls:[bf]g:exit"
Upvotes: 2