Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Color Du

📅 2014-Sep-11 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ cdu, colors, du ⬩ 📚 Archive

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:

$ make
$ sudo make install

Tried with: CDU 0.37 and Ubuntu 14.04


© 2023 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 Mastodon📧 Email