Created
October 26, 2015 21:23
-
-
Save smddzcy/866f8c828f90815bbdd0 to your computer and use it in GitHub Desktop.
Delete & disable logs on Linux
This file contains 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
#!/bin/bash | |
#delete bash logs & disable logging on linux | |
export HISTFILE=/dev/null; | |
export HISTSIZE=0; | |
rm ~/.bash_history -rf; | |
history -c; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment