Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ac(8) — Duplix 5.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

init(8)

sa(8)

login(1)

utmp(5)

AC(8)  —  Unix Programmer’s Manual

NAME

ac − login accounting

SYNOPSIS

/etc/ac [ options ] [ users ] ... 

DESCRIPTION

Ac produces a printout giving connect time for each user who has logged in during the life of the current wtmp file.  Ac also prints out the total of all the connect times.  Specifying users limits the printout to those login names.  If you do not specify another wtmp file with the −w option, ac uses /usr/adm/wtmp. 

The accounting file /usr/adm/wtmp is maintained by init and login.  Neither of these programs creates the file, so if it does not exist no connect-time accounting is done.  To start accounting, this file should be created with length 0.  On the other hand if the file is left undisturbed it will grow without bound.  The system manager should periodically collect any information he or she wants, then truncate the file. 

OPTIONS

−d Orders a printout of the accounting for each midnight to midnight period. 

−p Prints individual totals. 

−w wtmp
Specifies an alternate wtmp file.

FILES

/usr/adm/wtmp

SEE ALSO

init(8), sa(8), login(1), utmp(5). 

4th Berkeley Distribution  —  April 27, 1985

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026