Hard disk usage and availability report tools
Sponsored Link
You can always use du and df commands for this purpose but apart from that we have these 3 nice tools
di -- advanced df like disk information utility
`di' is a disk information utility, displaying everything (and more) that your `df' command does. It features the ability to display your disk usage in whatever format you desire/prefer/are used to. It is designed to be portable across many platforms.
Install di in ubuntu
sudo apt-get install di
Examples
More
di -f SMbuf1T
di -f SMbcvpT
di -f SMBuv2T
discus -- pretty version of df command
Discus aims to make df prettier, with features such as color, graphs, and smart formatting of numbers (automatically choosing the most suitable size from kilobytes, megabytes, gigabytes, or terabytes). If you don't want Discus deciding the best sizes, you can also choose your own increments, along with specifying the number of decimal places you'd like to see.
Install discuss in ubuntu
sudo apt-get install discus
Output
durep -- create disk usage reports
durep is a perl script used for disk usage reports. It can generate text output with bar graphs to allow easy comparisons of disk usage between directories. It can also generate web pages which can be navigated through the directory structure. This allows easy visual monitoring of disk usage.
Install durep in ubuntu
sudo apt-get install durep
durep examples
1. durep -td 2
This would print the directory tree starting from the current direc?tory to depth 2.
2. durep -f /var/spool/mail
This might be useful for keeping a check on the mail directory. The "-f" switch tells durep to just scan files and not descend into directories.
3. durep -x -cp "/(etc|usr/share)" -ep "/var" -sf /var/lib/durep/root.ds /
This more complicated version does the following. It scans the root filesystem only, collapses the contents of any paths begining /etc or /usr/share and skips the contents of the /var directory. It saves the output of this report into the file /var/lib/durep/root.ds. No text report is produced.
4. durep -lf /var/lib/durep/root.ds -hs 1m
This reads the save-file /var/lib/durep/root.ds and produces a text report from it, hiding any files below 1 megabyte.
5. durep -c /var/lib/durep
This collates any save-files in /var/lib/durep.
Pydf -- report colourised filesystem disk space usage
pydf is a python script that displays the amount of disk space avail?able on the mounted filesystems, using different colours for different types of filesystems. Output format is completely customizable.
Install pydf in ubuntu
sudo apt-get install pydf
Output
If you want to know more details about each tool use man pages
man di
man discus
man durep
man pydf
‘pydf’ is one just like ‘discus’ and it comes in a color flavour. 🙂
Also, check out Filelight for a GUI tool. It’s amazingly intuitive and can help drill things down very quickly and easily. It’s in the ubuntu repositories 🙂
@ben
filelight seems to be kde based so if you try to install this app it will install complete kde
What about “Disk Usage Analyzer” aka “Baobab” which comes by default in the gnome-utils package? It’s intuitive and easy to use, plus has a pretty and functional pie chart to display usage that’s explorable (you can click sections to zoom in).
I have ALL the tools 😛
I didn’t know that are so many tools for hard-disc usage. I made also an article with this subject http://ubuntu-for-humans.blogspot.com/2009/12/how-to-see-hard-disc-space-in-ubuntu.html. Long live Ubuntu :). Thanks!