Re:“I have [bash] history back to ~2003”
by leni536 on Thursday September 03, 2015 @05:32AM
(#10163989)
Where stuff takes password as an argument. Alternatively you can start your line with a space character and it isn't stored in your history.
[ Parent
| on HN ]
Re:“I have [bash] history back to ~2003”
by bratch on Thursday September 03, 2015 @05:52AM
(#10164048)
The leading space behaviour is true only if HISTCONTROL="ignorespace" is set.
Re:“I have [bash] history back to ~2003”
by leni536 on Thursday September 03, 2015 @05:58AM
(#10164065)
Did not know that, for me HISTCONTROL=ignoreboth is set in my .bashrc. I think Debian's adduser creates a default .bashrc file where this line is present, I'm not sure though.