[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Command history



shawn wilson (ag4ve.us@gmail.com on 2011-04-27 18:58 -0400):
> Is there a way to have a command that does not show up in history? Or
> a way to pipe a string where the string doesn't show up in history?

see the HISTIGNORE variable in the bash manual, and edit ~/.bashrc
accordingly. Most used is something like

export HISTIGNORE=" *"

which will not save any command that starts with a space.


Regards,
Arno


Reply to: