3 ms·
> I can erase or alter logs, but then there are logs logged of me vi'ing logs, so I erase the shell history, but then that gets logged when I log out. It's a we
by zerohp 12y ago
> I can erase or alter logs, but then there are logs logged of me vi'ing logs, so I erase the shell history, but then that gets logged when I log out. It's a weird loop I don't know how to defeat, but some people do.
This is trivial, but you need to be familiar with the environment variables used by bash. unset HISTFILE
- yourad_io 12y agoOr kill the shell from within, avoiding history write: $ vi /var/log/*.log $ kill -9 $BASHPID