Skip to content

Instantly share code, notes, and snippets.

@legovaer
Created March 7, 2023 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save legovaer/90e502f3ea63d4708d8115b8929fd63a to your computer and use it in GitHub Desktop.
Save legovaer/90e502f3ea63d4708d8115b8929fd63a to your computer and use it in GitHub Desktop.
LINUX COVER YOUR TRACKS COMMANDS
```bash
echo "" /var/log/auth.log - Clear auth.log file
echo '''' -/.bash history - Clear current user bash history
rrn -/.bash histor/ -rf - Delete .bash_history file
history -c - Clear current session history
export HISTFILESIZE=O - Set history max lines to 0
export HISTSIZE=O - Set history max commands to 0
unset HISTFILE - Disable history logging (need to logout to take effect)
kill -9 $$ - Kills current session
ln /dev/null -/.bash_historj -sf - commands to /dev/null
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment