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.
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.
- π§Ό 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
- Bash shell (
bash) sudoprivileges- Debian-based system (tested on Kali, Ubuntu, Debian)
git clone https://github.com/linuxcoding-ADAM/Ultimate_System_Cleaner.git
cd Ultimate_System_Cleaner
chmod +x cleaner.sh./cleaner.shThe script will:
Ask for confirmation before deleting anything.
Display every cleanup operation with colored feedback.
Perform cleanup operations safely using sudo.
β 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
=========================================
π§Ή 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.