Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🧹 Clean Linux System β€” Root Edition

Cleaner tools for Linux Debian Optimized for root-level system maintenance.

License: MIT Platform Shell


✨ Features

  • πŸ—‚οΈ Clean APT cache β€” Free up space used by downloaded package files
  • πŸ—‘οΈ Remove old config files β€” Purge leftover configs from uninstalled packages
  • 🐧 Remove old kernels β€” Keep only the kernels you need
  • πŸͺ£ Empty every trash β€” Wipe all trash directories system-wide

⚠️ This is the Root Version β€” Run from the root terminal.


πŸš€ Getting Started

Open a root terminal and run the following commands:

# Clone the repository
git clone https://github.com/spyschools/clean-linux-system-root.git

# Navigate into the directory
cd clean-linux-system-root

# Make the script executable
chmod +x *

▢️ Usage

πŸ” Safe Mode (no deletion)

Preview what will be cleaned without making any changes:

./clean_system.sh --dry-run

🧹 Real Cleanup

Run the full cleanup:

./clean_system.sh

🏠 Home User Version

Looking for a non-root version for everyday home use?

πŸ‘‰ clean-linux-system β€” Tools for home Linux users


πŸ“‹ Requirements

  • Debian-based Linux distribution (Debian, Ubuntu, Linux Mint, etc.)
  • Root or sudo access
  • Bash shell

⚠️ Disclaimer

Always run --dry-run first to review what will be removed before performing the actual cleanup. Use at your own risk.


πŸ“„ License

This project is open source. Contributions and feedback are welcome!

About

Cleaner tools for Linux Debian. Clean apt cache. Removing old config files. Removing old kernels. Emptying every trashes (Root Version)

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages