ncdu

Published: July 19th 2016

I just had to share one of those cool utilities you discover in the line of fire and then think you now just can't live without. ncdu is a semi-graphical disk utilisation system that lets you drill down to discover where your space has gone.

What does it do?

In the words of the authors:
ncdu (NCurses Disk Usage) is a curses-based version of the well-known 'du', and provides a fast way to see what directories are using your disk space.
[ Author's Site ]

How do I install it?

ncdu is available in yum/dnf and apt repositories:

sudo dnf install ncdu

sudo apt-get install ncdu

Once installed you can fire it up by heading to your root partition and running the command:

$  ncdu

What does it look like?

Using your cursor keys you can navigate around your filesystem to drill down on the folders that are using all of your system space up. Using the d key you can select to delete files as you work around and the system will recalculate space utilised as you go.

There are many options that allow you to lock down to specific partitions or devices as well as exporting your results directly to a report instead of waiting around for it to parse your massive file and folder sets.

It just saved me a stupid amount of traversing the terminal and trying to locate where a bunch of logging data was chewing my virtual machine.

Happy hacking!
gingerCoder()

Next Item.. Default Placeholders, a security hole

Previous Item.. Tmux