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?
How to use?
Command | Description |
---|---|
ncdu | To scan and browse the directory you’re currently in |
ncdu -x / | scan a full filesystem, your root filesystem |
ncdu -1xo- / | gzip >export.gz | scan 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 |