System-Cleanup-Script

System-Cleanup-Space-Optimization

๐Ÿงผ Script by Sohag โ€” System Cleanup & Space Optimization


๐Ÿงผ Summary of log_cleanup.sh


๐Ÿš€ Automate with wget + cron

1. Download the script:

wget -O log_cleanup.sh https://raw.githubusercontent.com/sohag1192/System-Cleanup-Space-Optimization/main/log_cleanup.sh
chmod +x log_cleanup.sh

2. Schedule it with cron:

crontab -e

Add this line to run daily at 3:00 AM:

0 3 * * * /root/log_cleanup.sh >> /root/log_cleanup.log 2>&1