Console utility to know how disk space is distributed?

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: https://serverfault.com/questions/301423/how-can-i-determine-what-is-taking-up-so-much-space


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.

Tags:

Disk Usage