Created
March 7, 2023 23:09
-
-
Save legovaer/90e502f3ea63d4708d8115b8929fd63a to your computer and use it in GitHub Desktop.
LINUX COVER YOUR TRACKS COMMANDS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```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