Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
forty
· 6y ago · 0 comments
Tip: if you prefix your command by a space in bash (and maybe other shells) that command doesn't get recorded in history.
Comments
[–]
visualphoenix
6y ago
Don’t go doing this and expecting it’s the default behavior. It’s not. Your bash session must have set, at minimum:
HISTCONTROL=“ignorespace”
[–]
R0b0t1
6y ago
Issue is /proc/$pid/environ if enabled. Envvars are visible just like args. I think there are other ways to recover if on same uid.