Wiki Logo
/
Home/Tools/ncdu Disk Usage Analyzer Find large files
Tools

ncdu Disk Usage Analyzer Find large files

ncdu — Disk Usage Analyzer

ncdu (NCurses Disk Usage) is a fast, interactive tool for finding what's eating your disk space. It scans directories and presents a sorted, browsable overview.


Installation

macOS (Homebrew)

brew install ncdu

Windows (Scoop)

scoop install ncdu

Windows (Chocolatey)

choco install ncdu

Linux (apt)

sudo apt install ncdu

Linux (dnf)

sudo dnf install ncdu

Scan Your Entire Disk

macOS

sudo ncdu -x /

-x keeps the scan on a single filesystem (skips virtual/network mounts).

Windows

Run your terminal as Administrator, then:

ncdu C:\

Linux

sudo ncdu -x /

Basic Navigation

KeyAction
↑ / ↓Move through the list
EnterOpen directory
dDelete selected file/directory
nSort by name
sSort by size
qQuit

Useful Flags

FlagDescription
-xStay on the same filesystem
-qQuiet mode (no update during scan)
-eEnable shell extension for delete
-o FILEExport scan results to a file
-f FILELoad a previously saved scan

Export & reload a scan (handy for large disks)

sudo ncdu -x / -o /tmp/scan.gz
ncdu -f /tmp/scan.gz

This lets you scan once and browse the results later without re-scanning.