-h,--help This help message -q Quiet mode, refresh interval 2 seconds -v,-V,--version Print version -x Same filesystem -e Enable extended information -r Read only -o FILE Export scanned directory to FILE -f FILE Import scanned directory from FILE -0,-1,-2 UI to use when scanning (0=none,2=full ncurses) --si Use base 10 (SI) prefixes instead of base 2 --exclude PATTERN Exclude files that match PATTERN -X, --exclude-from FILE Exclude files that match any pattern in FILE -L, --follow-symlinks Follow symbolic links (excluding directories) --exclude-caches Exclude directories containing CACHEDIR.TAG --confirm-quit Confirm quitting ncdu --color SCHEME Set color scheme (off/dark)
彩色显示:
1 2
ncdu --color dark # off/dark,默认 off ncdu --color dark /home
详细帮助请查看:man ncdu
ncdu 用法
进入 ncdu 后:
按 ?调出帮助对话框,按 1 显示快捷键(默认),按 2 显示格式说明,按 3 显示版本信息
常用快捷键:
n :按文件名进行排序(再按为切换升降序) s :按文件大小进行排序(默认,再按为切换升降序) r :重新计算大小 g :显示百分比