Linux "cover your tracks" Commands Flashcards
1
Q
Clear auth.log file
A
echo “” > /var/log/auth.log
2
Q
Clear current user bash history
A
echo “” > ~/.bash_history
3
Q
Delete .bash_history file
A
rm ~/.bash_history -rf
4
Q
Clear current session history
A
history -c
5
Q
Set history max lines to 0
A
export HISTFILESIZE=0
6
Q
Set history max commands to 0
A
export HISTSIZE=0
7
Q
Disable history logging (need to logout to take effect)
A
unset HISTFILE
8
Q
Kills current session
A
kill -9 $$
9
Q
Permanently send all bash history commands to /dev/null
A
ln /dev/null ~/.bash_history -sf