Hard disk usage and availability report tools

Sponsored Link
This tutorial will explain 3 Hard disk usage and availability report tools available in ubuntu
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
1

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

2

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

3

If you want to know more details about each tool use man pages

man di

man discus

man durep

man pydf

Sponsored Link

You may also like...

6 Responses

  1. Ikon says:

    ‘pydf’ is one just like ‘discus’ and it comes in a color flavour. 🙂

  2. Ben Browning says:

    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 🙂

  3. admin says:

    @ben

    filelight seems to be kde based so if you try to install this app it will install complete kde

  4. Bradford Mitchell says:

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

  5. karlzt says:

    I have ALL the tools 😛

  6. speedy18us says:

    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!

Leave a Reply

Your email address will not be published. Required fields are marked *