Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
du2ps(1)		     General Commands Manual			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	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  or-
     der with height corresponding to its volume, and sub directories are placed
     from left to right recursively.

OPTIONS
     -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).  De-
	    fault 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.

EXAMPLES
      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 num-
	    ber of disk blocks used at /home/taro/work'' in the upper left  cor-
	    ner.

      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 de-
	    fault 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  num-
	    ber  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.

SEE ALSO
     du(1), xdu(1)

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

				  Feb 19, 2005				du2ps(1)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=du2ps&sektion=1&manpath=FreeBSD+Ports+15.1.quarterly>

home | help