BSD 3 development
[unix-history] / usr / man / man1 / ac.1m
CommitLineData
e6817382
BJ
1.TH AC 1M
2.SH NAME
3ac \- login accounting
4.SH SYNOPSIS
5.B ac
6[
7.B \-w
8wtmp ] [
9.B \-p
10] [
11.B \-d
12] [ people ] ...
13.SH DESCRIPTION
14.I Ac
15produces a printout giving
16connect time
17for each user who has logged in
18during the life of the current
19.I wtmp
20file.
21A total is also produced.
22.B \-w
23is used to specify an alternate
24.IR wtmp ""
25file.
26.B \-p
27prints individual totals; without this option,
28only totals are printed.
29.B \-d
30causes a printout for each midnight to midnight
31period.
32Any
33.I people
34will limit the
35printout to only the specified login names.
36If no
37.IR wtmp ""
38file is given,
39.I /usr/adm/wtmp
40is used.
41.PP
42The accounting file
43.I /usr/adm/wtmp
44is maintained by
45.I init
46and
47.I login.
48Neither of these programs creates the file,
49so if it does not exist
50no connect-time accounting is done.
51To start accounting, it should be created with length 0.
52On the other hand if the file is left undisturbed it will
53grow without bound, so periodically any information
54desired should be collected and the file truncated.
55.SH FILES
56/usr/adm/wtmp
57.SH "SEE ALSO"
58init(8), login(1), utmp(5).