Jdu User Guide

General

jdu is a graphical front-end for the output generated by the du program. du reports the disk usage of a particular directory tree by recursively summarizing how much disk space is used by the sub-directories of the chosen root directory. du is a useful tool when it comes to cleaning up the hard disk because of disk space shortage (which should be less and less the case with ever growing hard disks - interestingly enough, though, that it is still necessary). The major drawback of the du program is, that it is difficult to intuitively grasp the information that it gives to the user because the information is presented in textal form only. To overcome this difficulty, some operating systems had a program called xdu that could be used to visualize the data produced by du. Although I have been looking for the xdu program for some time, I was not able to find it any longer. Neither do I know if it was distributed under a public license such that I could have ported it to the platform(s) I need. Therefore, I decided to write a graphical front-end similar to xdu myself. To have the functionality available on different platforms, I used the Java programming language to increase the portability of the resulting program.

However, since the du program is not available on the Windows platform, the jdu package also contains a very rudimentary version of the du called dujthat can be used to report the disk usage on a Windows computer. The output produced by duj is not the same as that produced by the original program mainly because the original program reports the disk usage in terms of used blocks. duj, on the other hand, simply summarizes the file sizes of the files in a particular directory and will therefore usually report a slightly smaller disk usage. This is due to the fact that blocks may not be completely filled but the original version of du naturally reports them as unusable for other files. However, the differences are small and the main intend of jdu is to identify the big 'black holes' on a hard disk and therefore the approximative report of duj program should be sufficient.

Download

Download jdu from SourceForge Logo via this link.

Usage

jdu [-file filename] [-minsize n] [-alert [n] [-interactive]]

du | jdu [-minsize n] [-alert [n]]

duj | jdu [-minsize n] [-alert [n]]

Command line options

file filename The name of the the file where the du output is read from. If no file is specified, jdu reads its input from stdin
minsize n Consider only directories that are larger than n kb.
alert [n] Highlight directories that are larger than n kb. Default is read from default.properties.
interactive Do not show an initial directory tree.

Mouse Commands

Keyboard Commands

f Fit to window
q Quit
s Bring up the scaling dialog.
u Move sliders to upper left corner.
z Zoom out.
Z Zoom in
Cursor keys Move sliders
Ctrl + cursor keys Jumps sliders

Default Properties

de.agentlab.jdu.minsize 0
de.agentlab.jdu.renderer.alert false
de.agentlab.jdu.renderer.alertsize 10000
de.agentlab.jdu.renderer.bgcolor 255,228,196
de.agentlab.jdu.renderer.drawcolor 0,0,0
de.agentlab.jdu.renderer.alertcolor 255,0,0
de.agentlab.jdu.renderer.headskip 5
de.agentlab.jdu.renderer.bottomskip 5
de.agentlab.jdu.renderer.blockwidth 100
de.agentlab.jdu.renderer.initialheight 600
de.agentlab.jdu.renderer.fontsize 8
de.agentlab.jdu.keycontrols.fit F
de.agentlab.jdu.keycontrols.quit Q
de.agentlab.jdu.keycontrols.scale S
de.agentlab.jdu.keycontrols.upper_left_corner U
de.agentlab.jdu.keycontrols.zoom_in shift Z
de.agentlab.jdu.keycontrols.zoom_out Z
de.agentlab.jdu.keycontrols.scroll_left LEFT
de.agentlab.jdu.keycontrols.jump_left control LEFT
de.agentlab.jdu.keycontrols.scroll_right RIGHT
de.agentlab.jdu.keycontrols.jump_right control RIGHT
de.agentlab.jdu.keycontrols.scroll_up UP
de.agentlab.jdu.keycontrols.jump_up control UP
de.agentlab.jdu.keycontrols.scroll_down DOWN
de.agentlab.jdu.keycontrols.jump_down control DOWN

Limitations

Known bugs


Last modified: Sun Nov 18 21:14:56 CET 2001
jli@agentlab.de