install correct aliases file
[unix-history] / usr / src / usr.sbin / ac / ac.8
CommitLineData
c616fb17
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
f5852cb4 5.\" @(#)ac.8 6.1 (Berkeley) %G%
c616fb17
KM
6.\"
7.TH AC 8 ""
8.UC 4
9.SH NAME
10ac \- login accounting
11.SH SYNOPSIS
12.B /etc/ac
13[
14.B \-w
15wtmp ] [
16.B \-p
17] [
18.B \-d
19] [ people ] ...
20.SH DESCRIPTION
21.I Ac
22produces a printout giving
23connect time
24for each user who has logged in
25during the life of the current
26.I wtmp
27file.
28A total is also produced.
29.B \-w
30is used to specify an alternate
31.IR wtmp ""
32file.
33.B \-p
34prints individual totals; without this option,
35only totals are printed.
36.B \-d
37causes a printout for each midnight to midnight
38period.
39Any
40.I people
41will limit the
42printout to only the specified login names.
43If no
44.IR wtmp ""
45file is given,
46.I /usr/adm/wtmp
47is used.
48.PP
49The accounting file
50.I /usr/adm/wtmp
51is maintained by
52.I init
53and
54.I login.
55Neither of these programs creates the file,
56so if it does not exist
57no connect-time accounting is done.
58To start accounting, it should be created with length 0.
59On the other hand if the file is left undisturbed it will
60grow without bound, so periodically any information
61desired should be collected and the file truncated.
62.SH FILES
63/usr/adm/wtmp
64.SH "SEE ALSO"
65init(8), sa(8), login(1), utmp(5).