Take the 2-minute tour ×
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.

Console utility to know how disk space is distributed.

Something like this:

Scanner screenshot

But with console interface in Linux?

share|improve this question
OK, this is confusing. Your screenshot is from windows, but the question is tagged with "linux". What are you looking for? –  EEAA Jul 30 '12 at 21:12
I'm more confused by what the Russian script in the picture is really saying –  Mike Pennington Jul 30 '12 at 21:17
I think I may be more confused as to why people upvote the question, when it doesn't make sense. –  Kevdog777 Aug 21 '12 at 10:55
add comment

migrated from serverfault.com Aug 21 '12 at 9:13

This question came from our site for professional system and network administrators.

4 Answers

up vote 13 down vote accepted

You could look at the ncdu utility or kdirstat.

The typical ncdu output looks like:

ncdu 1.7 ~ Use the arrow keys to navigate, press ? for help                                                         
--- /data ----------------------------------------------------------------------------------------------------------
  163.3GiB [##########] /docimages                                                                                  
   84.4GiB [#####     ] /data
   82.0GiB [#####     ] /sldata
   56.2GiB [###       ] /prt
   40.1GiB [##        ] /slisam
   30.8GiB [#         ] /isam
   18.3GiB [#         ] /mail
   10.2GiB [          ] /export
    3.9GiB [          ] /edi   
    1.7GiB [          ] /io     
    1.2GiB [          ] /dmt
  896.7MiB [          ] /src
  821.5MiB [          ] /upload
  691.1MiB [          ] /client
  686.8MiB [          ] /cocoon
  542.5MiB [          ] /hist
  358.1MiB [          ] /savsrc
  228.9MiB [          ] /help
  108.1MiB [          ] /savbin
  101.2MiB [          ] /dm
   40.7MiB [          ] /download

Also see: How can I determine what is taking up so much space?

share|improve this answer
Thanks! Exactly what I needed! –  ABTOMAT Jul 31 '12 at 9:34
add comment

While it's not pretty, I suggest du -hs /*. That will show all of the files and directories in / and how large they are. Or /* /*/* if you want the first two levels of directories, etc. Or du -h / if you want EVERY subdirectory rather that top-level totals.

Either way, this will take a bit of grinding to go through all the directories and add all the files up.

share|improve this answer
add comment

Well, it's hard to draw graphs in ASCII, but you could try the df command.

Filesystem            Size  Used Avail Use% Mounted on
                       28G   14G   13G  52% /
tmpfs                 939M   76K  939M   1% /dev/shm
/dev/vda1             485M   55M  405M  12% /boot
share|improve this answer
add comment

I usually use di:

$ di
Filesystem         Mount               Size     Used    Avail %Used fs Type
/dev/sda1          /                  22.3G    13.1G     9.2G  59%  jfs    
udev               /dev              996.4M   200.0K   996.2M   0%  tmpfs  
tmpfs              /dev/shm         1001.6M       0   1001.6M   0%  tmpfs  
/dev/sda2          /home              50.2G    32.2G    17.9G  64%  jfs 
share|improve this answer
-bash: di: command not found. It's not in any of my usual Enterprise Linux repositories either. Where did you find it? –  Michael Hampton Jul 30 '12 at 21:19
apt-get install di. From the webpage, it seems to be available for a range of operating systems: FreeBSD, Arch, Debian, CRUX, Gentoo, Mint, Ubuntu ... –  Thor Jul 30 '12 at 21:26
Gentoo. Hahaha. That's why I never heard of it. :) –  Michael Hampton Jul 30 '12 at 21:27
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.