Created
August 24, 2024 11:46
-
-
Save tejastank/ef37b97ca05f240b09115bc228d5e598 to your computer and use it in GitHub Desktop.
Clear all logs /var/logs linux #xamtainfotech #tejaskumartank
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
for CLEAN in $(find /var/log/ -type f) | |
do | |
cp /dev/null $CLEAN | |
done | |
#best way to just clear, sometime delete may crash some software |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment