I freed 80GB on my Mac with a bash script — no app, no subscription

📰 Dev.to · dadu14-code

Free up disk space on your Mac without using any apps or subscriptions by utilizing a simple bash script

intermediate Published 6 May 2026
Action Steps
  1. Run the command 'df -h' to check available disk space on your Mac
  2. Use the command 'sudo rm -rf /Volumes/*/.Spotlight-V100' to remove Spotlight indexes
  3. Delete unnecessary system logs with 'sudo rm -rf /private/var/log/*'
  4. Empty the trash with 'rm -rf ~/.Trash/*'
  5. Use 'sudo rm -rf /private/var/tmp/*' to remove temporary files
Who Needs to Know This

Developers and system administrators can benefit from this approach to free up disk space and optimize their systems

Key Insight

💡 You can free up significant disk space on your Mac by removing unnecessary system files and logs using bash scripts

Share This
💡 Free up 80GB on your Mac without any apps or subscriptions! Use a simple bash script to optimize your system

Key Takeaways

Free up disk space on your Mac without using any apps or subscriptions by utilizing a simple bash script

Full Article

My Mac mini was telling me I had over 80GB of "System Data" to free up. CleanMyMac wanted €34/year....
Read full article → ← Back to Reads

Related Videos

How to Code with Distrobox on the Steam Deck
How to Code with Distrobox on the Steam Deck
Ian Wootten
Can You Code on a Steam Deck?
Can You Code on a Steam Deck?
Ian Wootten
AWS, Azure, GCP: The One Thing Every Business Gets Wrong
AWS, Azure, GCP: The One Thing Every Business Gets Wrong
AI Daily
Containers on Amazon ECS with Mama J
Containers on Amazon ECS with Mama J
AWS Developers
How to Open QTR Files (QuickTime Movie)
How to Open QTR Files (QuickTime Movie)
File Extension Geeks
Improving DevOps Security and Efficiency at Cathay with AWS ProServe | Amazon Web Services
Improving DevOps Security and Efficiency at Cathay with AWS ProServe | Amazon Web Services
Amazon Web Services