Minggu, 06 November 2011

NCDU - The Answer to a Question

The question is:

Where did all my disc space go?

The answer? An ncurses based application called NCDU. NCDU is a simple, light-weight disc-usage analyzer. I like NCDU because of it's few dependencies, in fact installing in on my system took less than 1mb worth of additional space. It is fast, because like all good applications it is written entirely in C. 

To install NCDU on a Debian based system simply run:

sudo apt-get install ncdu

Then launch NCDU with:

ncdu /

Depending on how much space is taken up (and how fast your drives are) you will have to wait a moment while it indexes your files. After a few moments you will be greeted with a screen that looks something along the lines of:


Because this is an ncurses based application it does mean you have to use the keyboard to make your way around - not a mouse. The keys are fairly intuitive though and there is a handy dandy help screen should you need it:


Should you find a file/folder you no longer need while browsing with NCDU you can even delete it on the spot (just because doing this if you are in the / directory). Hopefully you will find this application as useful as I did when a stray log file gets far too large :)

~Jeff Hoogland

Tidak ada komentar:

Posting Komentar