Skip to content

linuxcoding-ADAM/Ultimate_System_Cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧹 Ultimate System Cleaner πŸš€

A powerful, no-nonsense Bash script that cleans your Linux system from unnecessary junk β€” temporary files, cache, orphaned packages, and logs β€” while keeping the system stable, responsive, and lightweight.


⚑ Overview

This script is designed for Debian-based systems (Kali, Ubuntu, Debian, etc.) and performs safe cleanup operations using system commands.
It’s interactive, fast, and provides clear, colored output so you always know what’s happening.

The goal: Clean system. Fast performance. Zero bullshit.


🧩 Features

  • 🧼 Removes temporary files (/tmp, /var/tmp, ~/.cache)
  • 🧰 Cleans APT cache and removes orphaned packages
  • 🧾 Clears old system logs (keeps last 3 days)
  • πŸ—‘οΈ Empties the user trash bin
  • πŸ”„ Syncs filesystem after cleanup for stability
  • 🎨 Color-coded and interactive confirmation prompt
  • 🧠 100% local operations β€” no internet or external calls

🧠 Requirements

  • Bash shell (bash)
  • sudo privileges
  • Debian-based system (tested on Kali, Ubuntu, Debian)

πŸ› οΈ Installation

git clone https://github.com/linuxcoding-ADAM/Ultimate_System_Cleaner.git
cd Ultimate_System_Cleaner
chmod +x cleaner.sh

πŸš€ Usage

./cleaner.sh

The script will:

Ask for confirmation before deleting anything.

Display every cleanup operation with colored feedback.

Perform cleanup operations safely using sudo.

⚠️ Warnings & Disclaimer ⚠️ Read carefully before using. This script deletes system files β€” specifically temporary files, cache, logs, and trash. It is intended for users who understand Linux file structure and system operations.

❗ Disclaimer This project is provided β€œAS IS” without any warranty of any kind. The author and contributors are not responsible for any system damage, data loss, or instability caused by misuse or modification of this script.

Use this script at your own risk. Always review the code before running with sudo. If you’re unsure about any part β€” don’t run it.

🧱 Safety Notes The script does not touch user documents, configurations, or system binaries.

All delete commands are scoped to known safe directories:

/tmp

/var/tmp

$HOME/.cache

$HOME/.local/share/Trash

πŸ§ͺ Tested On System Version Status Kali Linux 2024.3 βœ… Tested Ubuntu 22.04 LTS βœ… Tested Debian 12 β€œBookworm” βœ… Tested

πŸ“œ License This project is licensed under the MIT License. You are free to modify and distribute it β€” just include attribution.

🧠 Contributing Pull requests are welcome. If you find a bug or have an improvement idea:

Fork the repo

Create a new branch

Commit changes

Open a PR with a clear description

🧰 Example Output

=========================================
🧹 Ultimate System Cleaner πŸš€
=========================================
This script will remove temporary files, logs, cache, and more.
Do you want to proceed? (y/n): y
Cleaning /tmp...
Cleaning /var/tmp...
Cleaning APT cache...
Removing orphaned packages...
Clearing system logs...
Emptying trash bin...
Syncing filesystem...
βœ… System cleanup complete! Your system is now faster and more efficient.
πŸŽ‰ Enjoy your clean system! πŸŽ‰

πŸ’¬ Support If you encounter an issue or have suggestions, open an issue on GitHub. Keep it technical and concise.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages