AC(8,C) AIX Commands Reference AC(8,C)
-------------------------------------------------------------------------------
ac
PURPOSE
Produces a printout of user logins.
SYNTAX
+-----------------+
/etc/ac --| +---------+ |--|
+---| -w wtmp |---+
^ | -p | |
| | -d | |
| | people | |
| +---------+ |
+-------------+
DESCRIPTION
The ac command produces a printout giving connect time for each user who has
logged in during the life of the current wtmp file. The command also produces
a total.
The accounting file /usr/adm/wtmp is maintained by the init and login commands.
Neither of these commands creates the file, so if it does not exist, no
connect-time accounting is done. To start accounting, the file should be
created with length 0. If the file is left undisturbed, it grows without
bound, so periodically information should be collected and the file should be
truncated.
FLAGS
-d Produces a printout for each midnight-to-midnight period.
-p Prints individual totals. Without this option, only totals are
printed.
people Requests that the printout be limited to only login names of the
specified people.
-w Specifies an alternate wtmp file. If no wtmp file is given,
/usr/adm/wtmp is used.
FILES
/usr/adm/wtmp
Processed November 8, 1990 AC(8,C) 1
AC(8,C) AIX Commands Reference AC(8,C)
RELATED INFORMATION
See the following commands: "init, telinit" and "login."
Processed November 8, 1990 AC(8,C) 2