🧹 File Janitor
File Janitor is a lightweight Bash utility for listing, reporting, and cleaning up unnecessary files (.log, .tmp, and system cache). It helps keep your system clean by removing old temporary/log files and freeing disk space automatically
✨ Features
📂 List files in a directory or the current path
📊 Report file usage (.log & .tmp) with counts and total sizes
🧹 Clean old files (removes .log and .tmp older than 7 days)
🚮 Cache cleaning (/var/cache/apt/archives) if run as root or with sudo
📥 Installation
Clone the repo:
git clone https://github.com/your-username/file-janitor.git cd file-janitor
Make the script executable:
chmod +x file-janitor.sh
🚀 Usage ./file-janitor.sh [OPTION] [DIRECTORY]