Color Du

du is one of those commands with a good indent, but not useful in practice. This is because it shows the size of directories, but in numbers which make it hard to quickly see which files or directories are the biggest. After all, that is the reason why this tool is mostly used.

Color DU (cdu) is a program written by Stephane Levant that fixes this problem beautifully. Its display is similar to du, one file or directory per line, but it shows a colorful bar graph of usage. It becomes immediately apparent which directories or files are hogging all the space in a given directory.

To install this program:

  • Download its source code here and unzip the contents.

  • Build and install it:

$ make
$ sudo make install

Tried with: CDU 0.37 and Ubuntu 14.04

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s