Is there a nice alternative for this? I always use

du -shc *

to check the size of all files and folders in the current directory. But it would be nice to have a colored and nicely formatted view (for example like dfc for viewing the sizes of partitions).


This is not coloured, but also really nicely ordered by size and visualized:

ncdu - NCurses Disk Usage

apt-get install ncdu

ncdu [options] dir

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.

Output looks like this:

ncdu 1.10 ~ Use the arrow keys to navigate, press ? for help                       
--- /var/www/freifunk -------------------------------------------------------------
  470,7MiB [##########] /firmware                                                  
  240,8MiB [#####     ] /ffki-firmware
  157,9MiB [###       ] /gluon-alfred-vis
  102,6MiB [##        ]  chaosradio_162.mp3
  100,2MiB [##        ] /ffki-startseite
   99,6MiB [##        ] /ffki-startseite-origin
   72,3MiB [#         ] /startseite
   66,2MiB [#         ] /metameute-startseite
   35,2MiB [          ] /startseite_site
   11,9MiB [          ] /jungebuehne

ncdu is nice, cause you can install it via apt on debian. Only colors would be cool and an export function that does not use the whole screen.

gt5 - a diff-capable 'du-browser'

gt5 looks quite the same, and there are some colors, but they have no meaning (only all files and folders are green). gt5 is also available via apt:

sudo apt-get install gt5
  • ncdu has color output. Run it with ncdu --color dark. – Ori Jul 29 '18 at 14:28
  • seems like a newer version is needed. ncdu 1.12 has no color option – rubo77 Jul 29 '18 at 20:35
  • confirming ncdu 1.13 has color – user12345 Aug 6 '18 at 19:14
  • Very loosely related, dfc and pydf will do something similar for the df command (which is what I meant when I accidentally searched for and came to this result from). – Sridhar Sarnobat Jul 22 at 3:37

I see the below information from here.

cdu (for Color du) is a perl script which call du and display a pretty histogram with optional colors which allow to imediatly see the directories which take disk space.

With no arguments, cdu reports the disk space for all subdirectories of the current directory. With only one directory argument, cdu reports the disk space for all subdirectories of the given directory. You can also call du with no predefined options. For more documentation about available options, see the manpage below.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.