Home » Questions » Computers [ Ask a new question ]

Does a recursive disk-space-usage pie-chart web-page generator exist for Linux?

Does a recursive disk-space-usage pie-chart web-page generator exist for Linux?

Does anyone know of a per directory ( not per user) disk space usage pie chart generator script for linux? I want to generate a set of web pages that will give me the usage of each directory, and then you can click on the pie-chart segment and see the disk usage of that sub-directory.

Asked by: Guest | Views: 23
Total answers/comments: 2
Guest [Entry]

"kdirstat is a similar program for KDE. Worst case scenario, if you don't want to do it manually, you can probably borrow the code, or even hack together an automated GUI/saver solution using DBUS.

Anyway, the generate chart type you're looking for is called a ""Treemap"", so that should help you to track something down. Check out http://www.cs.umd.edu/hcil/treemap-history/

Update: Seems there are both python and ruby libraries:

http://rubytreemap.rubyforgedotorg/html-treemap.html

http://pypi.pythondotorg/pypi/treemap/1.05

Presumably, you just need to read the directory entries, group them hierarchically (probably in whatever way is most natural to your language of choice; lists and dicts in python, I suppose), and then call the library to generate your output graphic. But this is a guess; read the docs :)"
Guest [Entry]

"If you want to do this on a headless server, and view the data offline, then this is a great option:

http://zevv.nl/play/code/philesight/"