NCurses Disk Usage Tool

The Ncdu is the popular alternative to du command in the Linux community. The developer of Ncdu is not satisfied with the performance of the du command, so he ended up creating his own. Ncdu is simple, yet fast disk usage analyzer written using C programming language with an ncurses interface to find which directories or files are taking up more space either on a local or remote system

How to install?

➜  ~ uname -a
Linux debian 5.18.0-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.5-1 (2022-06-16) x86_64 GNU/Linux

System information

sudo apt install ncdu

Installation command

➜  ~ ncdu --version
ncdu 1.17

Verify if install correctly

How to use?

CommandDescription
ncduTo scan and browse the directory you’re currently in
ncdu -x /scan a full filesystem, your root filesystem
ncdu -1xo- / | gzip >export.gzscan a directory and export the results
ncdu -o- | tee export.file | ./ncdu -f-export a directory and browse it once scanning is done
ssh -C user@system ncdu -o- / | ./ncdu -f-scan a system remotely, but browse through the files locally

Subscribe to TheBuggerUs

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe