Files
atomic-red-team/Mac/Defense_Evasion/Clear_Command_History.md
T
2018-01-01 14:30:45 -05:00

258 B

Clear Command History

MITRE ATT&CK Technique: T1146

multiple shells

unset HISTFILE

export HISTFILESIZE=0

history -c

bash

rm ~/.bash_history

cat /dev/null > ~/.bash_history