my-cyber-diary

my logs

View on GitHub

covering tracks

Covering tracks is most import for redhat.

overwrite files:

cat /dev/null > /var/log/auth.log
cat /dev/null > ~/.bash_history

# If It was used by you
cat /dev/null > ~/.python_history
cat /dev/null > ~/.sqlite_history
cat /dev/null > ~/.irb_history

clearing history:

history -c

changing variables:

export HISTFILESIZE=0
export HISTSIZE=0

Unset the historyfile variable:

unset HISTFILE

permenently clear .bash_history file:

ln -sf /dev/null ~/.bash_history

kill the current session:

kill -9 $$

Thanks!