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

0

5 Answers 5

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.

2
  • 4
    this was rebuilt and is now called QDirStat. It is IMMENSELY fast, seems like some dark magic to me. I definitely recommend it Commented Aug 6, 2016 at 12:54
  • @Blauhirn Thanks, I'll definitely will check it out. Commented Aug 6, 2016 at 16:43
16

Another ncurses alternative is ncdu.

3
  • That works really well. And even on a character ssh terminal. Commented Sep 9, 2017 at 7:41
  • ...and is very fast Commented Jun 15, 2021 at 19:59
  • Great tool! Thank you! Commented Jul 16, 2021 at 12:51
12

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

2
  • 1
    ncdu is great! Commented Dec 11, 2016 at 23:01
  • Ditto! Love ncdu - Thanks from September 2017 (Ubuntu 16.04 LTS). Commented Sep 9, 2017 at 7:40
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.

1
  • Your link is broken. Commented Nov 7, 2015 at 21:46
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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.