16

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).

5 Answers5

17

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, of which WinDirStat is a clone. 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.

mignon426
  • 3
  • 3
Levon
  • 11,384
  • 4
  • 45
  • 41
16

Another ncurses alternative is ncdu.

11

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

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

enter image description here

5

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.

4

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

Tim
  • 6,141