Free & Open Source Linux cleanup tool
Scan and remove junk files, caches, logs, and more — safely built with Python.
No installation needed (just Python). Clone and run:
# 1. Clone the repository
git clone [https://github.com/SEU-USUARIO/linux-cleaner-cli.git](https://github.com/SEU-USUARIO/linux-cleaner-cli.git)
# 2. Enter the directory
cd linux-cleaner-cli
# 3. Run the cleaner
python3 -m linux_cleaner_cli.main- Scan system paths safely
- Clean caches and temporary files
- Log every action to your terminal
$ python3 -m linux_cleaner_cli.main
🚀 Iniciando Linux Deep Cleaner CLI...
🗑️ Iniciando Limpeza da Lixeira Padrão...
📂 Processando Arquivos Deletados em: /home/user/.local/share/Trash/files
➡️ Removendo diretório: OldProject
➡️ Removendo arquivo: image.png
🧹 Processando Metadados em: /home/user/.local/share/Trash/info
➡️ Removendo metadado: image.png.trashinfo
🛠️ Inicializando Limpeza de Cache de Navegadores...
Examinando pasta: GPUCache
✅ Pasta removida: /home/user/.config/google-chrome/Default/GPUCache
🦊 Limpeza de Cache do Firefox...
✅ Pasta removida: cache2 no perfil x8s7f.default-release
💨 Iniciando Limpeza de Arquivos Temporários em: /tmp
📄 Removido arquivo: temporary_data.log
❌ Falha ao remover .X11-unix: Permission denied. Ignorando item bloqueado.
✨ Limpeza Concluída!| Feature | Description |
|---|---|
| 🐍 Pure Python | Built with native libraries (pathlib, shutil) for maximum compatibility. |
| 🔍 Smart Scanning | Identifies Chrome and Firefox caches specifically. |
| 🔧 Modular | Architecture separated into Orchestrator (Main) and Modules. |
| 🔧 Maintenance | Flush DNS cache, free purgeable space |
| 🔒 Privacy First | 100% offline — no data ever leaves your machine |
| 🐧 Native Linux | Follows XDG Base Directory standards (~/.cache, ~/.local). |
| Category | Path | What it cleans |
|---|---|---|
trash |
~/.local/share/Trash |
Empty the user's trash bin (Files & Info). |
temp-files |
/tmp/ |
System temporary files (skips locked system files). |
browser-cache |
~/.config/google-chrome & ~/.cache/mozilla/firefox |
Chrome, Firefox |
| Category | Description |
|---|---|
user_cache |
General ~/.cache cleanup (excluding browsers). |
dev_cache |
pip, npm, and node_modules cache cleanup. |
system_logs |
Old logs in /var/log. |
git clone [https://github.com/SEU-USUARIO/linux-cleaner-cli.git](https://github.com/your-user/linux-cleaner-cli.git)
cd linux-cleaner-cli
# Run in modular mode (Recommended)
python3 -m APP.mainThe project follows a clean, modular structure to separate logic from execution.
linux-cleaner-cli/
├── main.py # Orchestrator: Defines paths & calls functions
├── modules/ # The "Toolbox"
│ ├── __init__.py # Makes it a package
│ └── cleaner.py # Logic: The actual cleaning functi
Contributions are welcome! Please feel free to submit a Pull Request.
-
Fork the repository
-
Create your feature branch (git checkout -b feature/amazing-feature)
-
Commit your changes (git commit -m 'Add some amazing feature')
-
Push to the branch (git push origin feature/amazing-feature)
-
Open a Pull Request
📄 License GNU 3.0 — see LICENSE for details.
This tool deletes files from your system. While we've implemented safety measures (like permission checks), always ensure you have backups of important data.