Create Disk Usage Reports with durep

Sponsored Link
urep 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. durep was designed for monitoring disk usage in a more visual way than du. The du program works fine but doesn't allow a lot of control over how the results are displayed. This perl script is designed to produce output more useful for reports.

Install durep in Ubuntu

Use the following command to install durep

sudo aptitude install durep

Using durep

durep Syntax

durep [OPTION]... [DIRECTORY]

durep Examples

1. "durep -w ~/durepweb -td 2″

This would print the directory tree starting from the current directory to depth 2 to the console and also create web pages in the directory ~/durepweb (this directory must exist).

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. Since the "-w" switch is not present, no web pages are produced.

3. "durep -x -cp "/(etc|usr/share)" -ep "/var" /"

This more complicated version does the following. It scans the root filesystem only, hides the contents of any paths begining /etc or /usr/share and skips the contents of the /var directory.

4. "durep -q -sf durep.save /home "

This scans /home and saves the results to the save fail durep.save. No text output is produced.

5. "durep -q -w ~/durepweb -lf durep.save /home "

This reads the save file durep.save and produces a web report from it in the directory ~/durepweb. No text output is produced.

Sponsored Link

Incoming search terms:

Related posts

One thought on “Create Disk Usage Reports with durep

  1. nice tip!

    another useful application for disk usage it’s , an java multi-platform utility that collects several statistics and show them as overview charts (bar, ring and pie) and details tables of the scanned folder sizes. it provide also top 50 files, distribution of sizes, file types and modification dates, etc.

    JDiskReport is a freeware “ad-free uncrippled no-charge binary multi-platform software that never expires”, and it’s very useful!!!

    P.S.: I recommend a nautilus-actions entry to make your life easier:

    java -jar jdiskreport-1.3.0.jar %d/%f

    [Reply]

Leave a comment

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