Skip to content

cyberpods/CentosCleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

System Cleanup Script

Bash Linux

A robust Bash script for cleaning and maintaining Linux systems, particularly RHEL/CentOS-based distributions.

Features

  • 🧹 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

Requirements

  • Linux system (tested on RHEL/CentOS 7+)
  • Bash 4.0+
  • Root privileges
  • Basic utilities: yum, journalctl, find, df

Installation

curl -O https://raw.githubusercontent.com/cyberpods/CentosCleaner/refs/heads/main/cleanup.sh
chmod +x cleanup.sh

About

A simple script to help free up hard drive space.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages