Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Possible Duplicate:
How to understand what's taking up space?

Are there any tools in Linux for graphically visualizing the distribution of file sizes under a given path?

I am looking for something along the lines of WinDirStat, but on Linux, e.g. see snapshot below:

            enter image description here

Also, are there any similar tools that would show such distribution on a terminal? (I usually use df -csh *, but this only shows one level of a file hierarchy, and does not have any mechanisms for navigating a report, e.g. as I browse up and down through a file hierarchy).

share|improve this question

marked as duplicate by Gilles, Michael Mrozek Jul 21 '12 at 3:58

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

5 Answers 5

up vote 2 down vote accepted

I am using Disk Usage Analyser (aka Baobab), its output looks like this. (It's a png, couldn't paste it here). I believe it's part of the regular Ubuntu installation.

Also, there's KDirStat, a clone of WinDirStat, here's a screenshot:

enter image description here

Check out this page 6 Great Apps to View Disk Usage in Linux for a collection of other tools.

share|improve this answer

An oldy but goody: xdu It's an X11 display program, but you actually run it from the command line: du | xdu I believe that du also takes an argument, the directory in which to start. Apparently you can also use xdu to display other hierarchically-arranged numerical data, too.

xdu is available as a package on Debian. And appart from the link to the web archive given above, you can also get an updated version of the code from Debian to compile it on your system.

It isn't hard. You'll need xmkmf or something from the "imake" package of products.

You could also try xdiskuage said to be inspired by xdu which is more recent and more actively maintained.

share|improve this answer
Your link is broken. – g.rocket Nov 7 at 21:46

I am using ncdu for that purpose on the command line. The Homepage of that tool includes a list of similar software:

On KDE there is Filelight, which does a similar job, but with a slightly different representation.

enter image description here

share|improve this answer

Another ncurses alternative is ncdu.

share|improve this answer

The GTK Tool Baobab looks just like the tool you are showing above.

The NCURSES tool TDU will provide you with a nice text-mode console tool.

Baobab Screen Shot TDU Screen Shot

share|improve this answer

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