LNEXT
ONELCLEAN
UTERMINAL
TERMINAL
NEXT
$V1$
HILINE
PAUSE
q - to quit, <CR> - to continue
ACCTFORM
COMMAND USER TTYNAME START END REAL CPU MEAN
NAME TIME TIME (SECS) (SECS) SIZE(K)
ACCTFLAG
acctcom [[options] [file]]
FLAGS
-b - reads backwards, showing latest command first
-i - prints columns containing I/O counts in the output
-m - shows mean core size (the default)
-r - shows CPU factor
-t - shows separate system and user CPU times
GO
The accounting command that is available to all users is
acctcom. It searches the process account files and
prints accounting information for the current day! Each
line printed by acctcom represents the execution of one
process. The partial format of the output is shown above:
The acctcom command has numerous flags, all of which are
described in your User's Reference Manual; a few of these
flags are shown above.
Assuming that the accounting system
is turned on, let us print the
current day's accounting information
for your UNIX system, which should
include mean core size, CPU factor,
and separate user and CPU times. Note:
you will see only a partial result!
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type acctcom -m -r -t
Please type acctcom -m -r -t
You will be helped this time!
$PROMPT$
FORGET1
acctcom -m -r -t
Please observe the result.
NOTE: If your accounting system
is not set up, or if acctcom
is not installed on your system
you will not see any reasonable
output!
ACCOUNTING RECORDS FROM: Wed Jul 30 17:52:37 1986
COMMAND START END REAL CPU (SECS) CPU MEAN
NAME USER TTY TIME TIME (SECS) SYS USER FACTORSIZE(K)
#accton root ttyb 17:52:37 17:52:37 0.85 0.20 0.02 0.08 26.00
sh root ttyb 17:52:34 17:52:38 4.42 0.22 0.30 0.58 37.10
rm root ttyb 17:52:40 17:52:40 0.13 0.13 0.00 0.00 32.00
sh root ttyb 17:52:33 17:52:40 7.32 0.27 0.08 0.24 44.19
ps root ttyb 17:52:43 17:52:45 2.12 1.12 0.18 0.14 57.82
ls root ttyb 17:52:56 17:52:56 0.95 0.27 0.02 0.06 58.47
mv root ttyb 17:53:07 17:53:07 0.47 0.28 0.00 0.00 33.76
quest root tty00 04:39:48 04:56:18 990.93 1.73 4.43 0.72 118.14