Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

init(8)

sa(8)

login(1)

utmp(5)

AC(8)                                BSD                                 AC(8)



NAME
     ac - login accounting

SYNOPSIS
     /etc/ac [ -w wtmp ] [ -p ] [ -d ] [ people ] ...

DESCRIPTION
     ac produces a printout giving connect time for each user who has logged
     in during the life of the current wtmp file.  A total is also produced.
     If you don't specify a wtmp file, 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 the file does not exist
     no connect-time accounting is done.  To start accounting, create the wtmp
     file with length 0.  If the file is left undisturbed it will grow without
     bound, so you should periodically collect any information desired and
     truncate the file.

OPTIONS
     -w wtmp   Specify an alternate wtmp file.

     -p        Print individual totals; without this option, only totals are
               printed.

     -d        Causes a printout for each midnight to midnight period.

     people    Limit the printout to only the specified login names.

FILES
     /usr/adm/wtmp

SEE ALSO
     init(8), sa(8), login(1), utmp(5)

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