Last active
June 7, 2021 09:57
-
-
Save KevinRohn/047fb37513adae8a973a235764c1689c to your computer and use it in GitHub Desktop.
Clear all logs #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
for CLEAN in $(find /var/log/ -type f) | |
do | |
cp /dev/null $CLEAN | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment