Update HISTCONTROL

* Added route to setting permanently in .bash_profile
patch-1
atmathis 2018-01-01 16:17:10 -05:00
parent 0ddc31b336
commit 9b9bd358ed
2 changed files with 18 additions and 4 deletions

View File

@ -3,6 +3,13 @@
MITRE ATT&CK Technique: [T1148](https://attack.mitre.org/wiki/Technique/T1148)
### Set the environment variable, then preface commands with a space to exclude them from .bash_history
### Set the environment variable
export HISTCONTROL=ignoreboth
ls
OR
echo export "HISTCONTROL=ignoreboth" >> ~/.bash_profile
### Preface commands with a space to exclude them from .bash_history
ls
whoami > recon.txt

View File

@ -3,6 +3,13 @@
MITRE ATT&CK Technique: [T1148](https://attack.mitre.org/wiki/Technique/T1148)
### Set the environment variable, then preface commands with a space to exclude them from .bash_history
### Set the environment variable
export HISTCONTROL=ignoreboth
ls
OR
echo export "HISTCONTROL=ignoreboth" >> ~/.bash_profile
### Preface commands with a space to exclude them from .bash_history
ls
whoami > recon.txt