Skip to content

Analyze Disk Usage on macOS from Terminal

Nat edited this page Jul 20, 2026 · 1 revision

Analyze Disk Usage on macOS from Terminal

Running out of disk space but not sure what is taking it?

Use CleanMyMac CLI to explore storage directly from the Terminal.

Analyze your Mac

cleanmymac analyze

The interactive disk analyzer shows folders by size so you can quickly find where your storage is being used.

Analyze a specific folder

Projects:

cleanmymac analyze ~/Projects

Library:

cleanmymac analyze ~/Library

Any other directory:

cleanmymac analyze /path/to/folder

Navigate

Use the arrow keys to move through folders and drill deeper into large directories.

Press:

O

to reveal the selected item in Finder.

Browsing through storage does not modify your files.

Any removal action requires an explicit selection and confirmation.

What to do next

Found large developer caches?

cleanmymac clean dev

Found old project artifacts or node_modules?

cleanmymac purge

Found Xcode-related storage?

cleanmymac clean junk

Want to scan all cleanup categories?

cleanmymac clean

Install CleanMyMac CLI

brew install --cask macpaw/taps/cleanmymac-cli

Then start with:

cleanmymac analyze

Not sure what is safe to delete? Analyze first, clean second.

Related guides

← Back to Guides

Clone this wiki locally