✨ New update: Automation 2.0 is live — smarter workflows, faster results.

DiskSweep Utility for MacOS

Is Your Mac Running Out of Space? We’ve created DiskSweep – two lightweight utilities (Python + Bash) to help you find and manage large files. Perfect for developers tired of storage warnings! GitHub Repository: TechKluster/disksweep Why Choose DiskSweep? 🐍 Python Version 🐚 Bash Version Getting Started Python Version Setup Installation: Basic Usage: Bash Version Setup …

Is Your Mac Running Out of Space?

We’ve created DiskSweep – two lightweight utilities (Python + Bash) to help you find and manage large files. Perfect for developers tired of storage warnings!

GitHub Repository: TechKluster/disksweep

Why Choose DiskSweep?

🐍 Python Version

  • CSV exports
  • Cross-platform support
  • Interactive prompts
  • Advanced filtering

🐚 Bash Version

  • Zero dependencies
  • Instant results
  • Low memory usage
  • Cron job friendly

Getting Started

  1. Clone the repository:bashCopygit clone https://github.com/TechKluster/disksweep.git cd disksweep
  2. Choose your version:
    • Python: /python/disksweep.py
    • Bash: /bash/disksweep.sh

Python Version Setup

Installation:

cd python  
pip install -r requirements.txt  

Basic Usage:

# Scan Downloads folder for 500MB+ files  
python3 disksweep.py -d ~/Downloads -s 500  

# Generate CSV report  
python3 disksweep.py --csv report.csv  

Bash Version Setup

Installation:

cd bash  
chmod +x disksweep.sh  

Basic Usage:

# Quick home directory scan  
./disksweep.sh  

# Find 2GB+ files in Movies folder  
./disksweep.sh -d ~/Movies -s 2000  

Feature Comparison

FeaturePython VersionBash Version
Minimum File Size1MB10MB
CSV Export
Execution SpeedModerateFast

Pro Tips

  1. Scheduled Cleanups:
    Add this to crontab for weekly scans:bashCopy0 3 * * 1 /path/to/disksweep.sh -d ~/Downloads
  2. Common Targets:
    • Docker images (~/Documents/DockerDesktop)
    • Android SDK (~/.android)
    • Xcode Derived Data (~/Library/Developer)

FAQs

Q: Which version should I use?
A: Use Python for detailed reports, Bash for quick terminal checks.

Q: Is this safe for macOS Ventura/Sonoma?
A: Yes! Tested on macOS versions from Catalina onward.

Ready to Reclaim Your Space?

Both utilities are available under MIT License. Star the repo to support development! ⭐

Get DiskSweep on GitHub

ali.akhwaja@gmail.com

ali.akhwaja@gmail.com

Related Posts

Kafka is widely used message broker especially in distributed systems, many ask this question that why Kafka is preferred over other available message brokers. There is no clear answer to this question instead it depends on your own requirements. Here we will discuss fundamentals of Kafka which you should know to get started. What is …

Software project management is an art and science of planning and leading software projects. It is a sub-discipline of project management in which software projects are planned, implemented, monitored and controlled. A software project manager is the most important person inside a team who takes the overall responsibilities to manage the software projects and play …

Leave a Reply

Your email address will not be published. Required fields are marked *