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
Read full article → ← Back to Reads