GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
du2ps(1) FreeBSD General Commands Manual du2ps(1)

du2ps - filter for converting output of du to PostScript file

du2ps [ options ] < du_out_file > ps_file

The du2ps reads the output of du(1), then print a figure of hierarchic structure and volume of directory as one page PostScript file.

Each directory are illustrated as a rectangle in its volume descending order with height corresponding to its volume, and sub directories are placed from left to right recursively.

-land
Layout in landscape.
-port
Layout in portrait (default).
-sa
Place directories in alphabetical order.
-ss
Place directories in volume order (default).
-bw
Monocrome mode (default).
-color
Color mode (8 colors).
-ncolor num
Color mode with number of colors.
-a3
-a4
-b4
-b5
-us
Switch page size to A3, A4, B4, B5, or US letter. Default size is A4.
-ff name
Specify the font name for text. Default font is Times-Roman.
-fs size
Specify the font size. Default size is 8.0 [pt].
-ms size
Specify the margin size around a page. Default margin is 50.0 [pt].
-lw size
Specify the width of line to draw the rectangle area. Default value is 0.5 [pt].
-ncols num
Specify number of rectangle columns (maximum directory depth). Default value is 7 for portrait and 10 for landscape.
-eps width height
Output in EPS format. Width and height are the width and height of a BoundingBox.

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

du ~taro/work | du2ps | lpr

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

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

The most left directory name becomes ``ps'', and print ``The number of disk blocks used at ../../ps'' in the upper left corner. The ``-us'' option makes the page to fit a whole paper, because the default paper 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 print ``The number of disk blocks used at /home/taro'' in 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 print ``The number of disk blocks used at'' in the upper left corner.

du(1), xdu(1)

Takanori Nagae <nagae@media.t-kougei.ac.jp> and Shigeru Makino <mac@line.to>

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

February 19, 2005

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.