NCDU(1) General Commands Manual NCDU(1) (NAME) ncdu - (NCurses Disk Usage) (SYNOPSIS) ncdu [-f file] [-o file] [-O file] [-e, --extended, --no-extended] [--ignore-config] [-x, --one-file-system, --cross-file-system] [--exclude pattern] [-X, --exclude-from file] [--include-caches, --exclude-caches] [-L, --follow-symlinks, --no-follow-symlinks] [--include-kernfs, --exclude-kernfs] [-t, --threads num] [-c, --compress, --no-compress] [--compress-level num] [--export-block-size num] [-0, -1, -2] [-q, --slow-ui-updates, --fast-ui-updates] [--enable-shell, --disable-shell] [--enable-delete, --disable-delete] [--enable-refresh, --disable-refresh] [-r] [--si, --no-si] [--disk-usage, --apparent-size] [--show-hidden, --hide-hidden] [--show-itemcount, --hide-itemcount] [--show-mtime, --hide-mtime] [--show-graph, --hide-graph] [--show-percent, --hide-percent] [--graph-style hash | half-block | eighth-block] [--shared-column off | shared | unique] [--sort column] [--enable-natsort, --disable-natsort] [--group-directories-first, --no-group-directories-first] [--confirm-quit, --no-confirm-quit] [--confirm-delete, --no-confirm-delete] [--delete-command command] [--color off | dark | dark-bg] [path] ncdu [-h, --help] ncdu [-v, -V, --version] (DESCRIPTION) ncdu (NCurses Disk Usage) curses du(1) . (OPTIONS) (Mode Selection) -h, --help . -v, -V, --version . -f file -o -O . file '-' . JSON . ncdu . (refresh) . dir . -o file JSON file . file '-' . . . (KiB) gzip . . JSON Zstandard -c . (multi-threaded) -O . -O file file . file '-' . ( -t) . -e, --extended, --no-extended / . . ( ) . / ( ) ( ) . . (mtime) 'm' 'M' . --ignore-config . (Scan Options) . -x, --one-file-system . --cross-file-system . -x . --exclude pattern pattern . . . -X, --exclude-from file file . (newline) . --include-caches, --exclude-caches () CACHEDIR.TAG. . https://bford.info/cachedir -L, --follow-symlinks, --no-follow-symlinks (symlinks) ( ) . . (hard links) . . --include-kernfs, --exclude-kernfs ( ) () /proc (procfs) /sys (sysfs). : binfmt, bpf, cgroup, cgroup2, debug, devpts, proc, pstore, security, selinux, sys, trace. -t, --threads num . JSON ( -o) . . ( -O) . (Export Options) -o -O . -c, --compress, --no-compress Zstandard JSON ( -o). --compress-level num Zstandard -O -c. () () . . --export-block-size num ( -O). . --compress-level . . . (Interface Options) -0 . ncurses . -o - ncurses . . -1 ncurses . . ncurses / . -2 . -2 ncurses . . -q, --slow-ui-updates, --fast-ui-updates . ncdu ( --fast-ui-updates ) -q --slow-ui-updates . . -0 . --enable-shell, --disable-shell . . --enable-delete, --disable-delete . . . --enable-refresh, --disable-refresh (refresh) . . -r . --disable-delete --disable-shell ncdu . --si, --no-si (kB MB ) (SI) (KiB MiB ). --disk-usage, --apparent-size () . 'a' . --show-hidden, --hide-hidden () <<>> . 'e' . --show-itemcount, --hide-itemcount () . 'c' . --show-mtime, --hide-mtime () . 'm' . -e. --show-graph, --hide-graph () . 'g' . --show-percent, --hide-percent () . 'g' . --graph-style hash | half-block | eighth-block . hash '#' ( ) half-block eighth-block . . --shared-column off | shared | unique off shared () unique . 'u' . --sort column . disk-usage () name apparent-size itemcount mtime. -e. -asc -desc . --sort=name-desc . --enable-natsort, --disable-natsort () (natural sort) . --group-directories-first, --no-group-directories-first ( ) . --confirm-quit, --no-confirm-quit ncdu. 'q' . --confirm-delete, --no-confirm-delete . 'd' . --delete-command command . . ncdu . NCDU_DELETE_PATH NCDU_LEVEL ncdu . . . rm(1) : ncdu --no-confirm-delete --delete-command 'rm -ri --' : ncdu --delete-command 'gio trash --' --color off | dark | dark-bg . : off dark dark-bg dark . off . (CONFIGURATION) ncdu /etc/ncdu.conf $HOME/.config/ncdu/config . . . --ignore-config . . '#' . '@' . : # -e # --disable-delete # .git --exclude .git # ~/.ncduexcludes @--exclude-from ~/.ncduexcludes (KEYS) ? + + up, down, j, k right, enter, l left, <, h n ( ) s ( ) C ( ) a . M (mtime) ( ). -e . d . . t . g . . u / . . c . m (mtime) . -e . e / <<>> <<>>. . . i . r / . b . ncdu NCDU_SHELL SHELL ( ) /bin/sh . 'b' . vifm(1) ncdu : NCDU_SHELL=vifm ncdu NCDU_LEVEL ncdu . ncdu ( ) . q (FILE FLAGS) . : ! . . . < . > . ^ . @ ( ...). H ( ). e . (EXAMPLES) : ncdu -x : ncdu -x / : ncdu -1xO export.ncdu / # ...some time later: ncdu -f export.ncdu cron job -1 -0 . : ncdu -co- | tee export.json.zst | ./ncdu -f- : ssh user@system ncdu -co- / | ./ncdu -f- ncdu : ncdu . (SEE ALSO) du(1), tree(1). ncdu : https://dev.yorhel.nl/ncdu (AUTHORS) Yorhel (BUGS) firmlinks ( MacOS) . . . . ncdu . . (EiB) ncdu . . . : https://dev.yorhel.nl/ncdu Linux 6.12.107+deb13-amd64 August 16, 2025 Linux 6.12.107+deb13-amd64