Created
August 30, 2017 10:00
-
-
Save matinrco/6bfc64963dec70c4664d5e540b287319 to your computer and use it in GitHub Desktop.
Delete old log files in /var/log
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
sudo find /var/log -type f -regex ".*\.gz$" -delete | |
sudo find /var/log -type f -regex ".*\.[0-9]$" -delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment