diskusg generates intermediate disk accounting information from data in filename, or the standard input if filename is omitted. diskusg displays one line per user on the standard output in the following format:
uid login #blocks
uid is the numerical user ID of the user. login is the user's login name. #blocks is the total number of disk blocks allocated to the user.
diskusg normally reads only the i-nodes of file systems for disk accounting. In this case, filenames are the special filenames of these devices.
The output of diskusg is normally the input to acctdisk (see acct.8 which generates total accounting records that can be merged with other accounting records. diskusg is normally run in dodisk (see acctsh.8
The following example generates daily disk accounting information:
for i in /dev/xy0a /dev/xy0g /dev/xy1g; do diskusg $i > dtmp.`basename $i` & done wait diskusg -s dtmp.* | sort +0n +1 | acctdisk > disktacct
Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97