du2ps(1)

NAME
du2ps - filter for converting output of du to PostScript file

SYNOPSIS
du2ps [ options ] < du_out_file > ps_file

DESCRIPTION
The du2ps reads output of du(1), then generate a figure of hierarchical structure and utilization of directory as one page PostScript file.

Each directory is illustrated as rectangle in utilization order with height corresponding to its utilization, and sub directories are placed branched from left to right recursively.

OPTIONS

-land
    Layout in landscape. Default is in portrait.

-sa Place directories in alphabetical order. Default is in utilization order.

-b4

-b5

-us Switch page size to B4, B5, or US letter. Default is A4.

-ff name
    Specify font name for text. Default is Times-Roman.

-fs size
    Specify font size. Default is 8.0 [pt].

-ms size
    Specify margin around page. Default is 50.0 [pt].

-lw size
    Line width for drawing rectangle area. Default is 0.5 [pt].

-ncols num
    Specify number of rectangle columns (maximum directory depth). Default is 7 for portrait and 10 for landscape.

-eps width height
    Output in EPS format. Width and height are the width and height of BoundingBox.

EXAMPLES
du | du2ps | lpr

    The most left directory name becomes ``.'', and ``The number of disk blocks used at .'' will be displayed at the upper left corner. du /home/taro/work | du2ps | lpr

du ~taro/work | du2ps | lpr

    The most left directory name becomes ``work'', and ``The number of disk blocks used at /home/taro/work'' will be displayed at the upper left corner.

du ../../ps | du2ps -us -fs 16 > tmp.ps; gs tmp.ps

    The most left directory name becomes ``ps'', and ``The number of disk blocks used at ../../ps'' will be displayed at the upper left corner. The ``-us'' option makes entire page to fit paper, because default size of GhostScript is US letter.

du ~taro/work ~taro/bin | du2ps -eps 200 300 > fig1.eps

    The most left directory name becomes ``taro'', and ``The number of disk blocks used at /home/taro'' will be display at the upper left corner. Output will be commented with ``%%BoundingBox: 0 0 200 300''.

du work bin | du2ps -eps 100 100 -fs 4 > fig2.eps

    The most left directory name becomes ``..'', and ``The number of disk blocks used at'' will be display at the upper left corner.

SEE ALSO
du(1), xdu(1)

AUTHORS
Takanori Nagae <nagae@an.ip.titech.ac.jp> and Shigeru Makino <mac@research.co.jp>

The du2ps is based on xdu. The author of xdu is Phillip C. Dykstra <phil@BRL.MIL>.