A robust Bash script for cleaning and maintaining Linux systems, particularly RHEL/CentOS-based distributions.
- 🧹 Comprehensive system cleanup (logs, temp files, caches, and more)
- 📊 Disk space reporting before and after cleanup
- 🔒 Safety checks and dry-run mode
- 📝 Detailed logging with rotation
- 🐳 Docker cleanup support
- 🧠 Old kernel removal
- 🛡️ Root permission verification
- Linux system (tested on RHEL/CentOS 7+)
- Bash 4.0+
- Root privileges
- Basic utilities:
yum,journalctl,find,df
curl -O https://raw.githubusercontent.com/cyberpods/CentosCleaner/refs/heads/main/cleanup.sh
chmod +x cleanup.sh