Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

Hosting provided by: Cloudways
Free to Try! Up to 40% Off!

Category: Bash

Clean old logs on CentOS—create cleanup sh with #!/bin/bash\nfind /var/log -type f -mtime +30 -delete schedule with crontab -e: 0 3 * * * /path/to/cleanup sh Test with /cleanup sh—expect cleared logs Frees space on Vultr

Back to All Tips