Created
May 29, 2018 09:34
-
-
Save henyihanwobushi/3fe528b8d8c86979b6449395cad38dec to your computer and use it in GitHub Desktop.
delete old logs
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
find /var/log/** -maxdepth 0 -mtime +15 -exec sudo rm -rf {} + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment