See what's taking up your disk.

Run szt (short for sizetree) in any folder to get a tree of where the space went: biggest first, every folder with the total of everything inside it, opened up only where the space is. On a Mac Studio it scans 667,000 files in 2.4 seconds, where du takes 17.

brew install urtti/szt/szt

macOS 15+ · Native Swift binary · MIT licensed

Typing szt /Applications: a progress line counts files for about a second, then a colored tree of folder sizes with bars shows the biggest apps, Xcode at 4.20 GB, iMovie at 3.97 GB and Android Studio at 3.22 GB, out of 33.3 GB

szt on /Applications: 33 GB in 447,000 files, scanned in 1.2 seconds.

Everyday use

  • $ sztWhat's big in the current folder
  • $ szt ~ -n 80The 80 biggest things in your home folder
  • $ szt ~/Library -d 2No more than two levels deep
  • $ szt . -m 1GOnly things of 1 GB or more
  • $ szt ~/Downloads -aBy file length instead of space on disk
  • $ sudo szt / -XThe whole startup disk, system volumes too
  • $ szt ~ --allEvery entry, not only what fits in your terminal

How it compares

szt against dua, dust, diskus, gdu, du and ncdu, each with its default settings, on a Mac Studio (M2 Ultra). How it was measured

Scanning a folder of software projects123 GB in 667,000 files and 112,000 folders · lower is better
  • szt2.4 s
  • dua2.6 s1.1× slower
  • dust8.1 s3.4× slower
  • diskus11.4 s4.7× slower
  • gdu11.6 s4.8× slower
  • du17.2 s7.2× slower
  • ncdu17.5 s7.3× slower

Median of five runs per tool. Hover or focus a bar for CPU time and memory.

Why it's fast

A disk usage tool never reads your files: the whole job is listing folders and asking how big each entry is. szt asks macOS about a whole folder at once with getattrlistbulk instead of making a call for every file. And it runs one thread per performance core, up to eight, because past that the threads mostly wait for each other in the kernel.

Read the full write-up, with profiles and measurements

Already have it?

brew update && brew upgrade szt