Sort and view
s
Sort by size; press again to reverse
n
Sort by name; press again to reverse
M
Sort by newest child mtime
Needs a scan started with -e.
a
Toggle disk usage / apparent size
g
Cycle percentage and graph display
m
Show newest child mtime
Needs a scan started with -e.
t
Directories first on or off
u
Toggle shared / unique size column
Only shows when the listing has directories with shared hard
links.
e
Show or hide hidden and excluded items
They still count toward the totals.
Scan options
ncdu <path>
Scan a directory and browse it
ncdu -x <path>
Stay on one filesystem
ncdu -e <path>
Also record owner, mode and mtime
ncdu -t <n> <path>
Scan with n threads
ncdu -L <path>
Count the targets of symlinks
ncdu --exclude <pattern> <path>
Skip matching files (repeatable)
Excluded entries are still listed but not counted.
ncdu -X <file> <path>
Read exclude patterns from a file
ncdu --exclude-caches <path>
Skip dirs holding CACHEDIR.TAG
ncdu --exclude-kernfs /
Skip proc, sys and similar
ncdu --ignore-config
Skip the config files
Display options
ncdu --si
Use kB / MB instead of KiB / MiB
ncdu --apparent-size
Start on apparent size
ncdu --sort <col>-desc
Pick the starting sort
Columns: disk-usage, name, apparent-size, itemcount, mtime.
ncdu --group-directories-first
Directories above files
ncdu --color dark
Use the dark colour scheme
Use dark-bg for a light terminal; the default is off.
ncdu -q
Update the screen less often
ncdu -2
Full-screen UI while scanning
The only mode that shows non-fatal scan errors.
ncdu -1
Progress text, no full-screen UI
ncdu -0
No output during the scan