man(1) Manual page archive


     AC(8)                                                       AC(8)

     NAME
          ac - login accounting

     SYNOPSIS
          /etc/ac [ option ... ] [ person ... ]

     DESCRIPTION
          Ac prints the total connect time recorded in the accounting
          file, If persons are named, only those login names are con-
          sidered.  The options are

          -w file
               Use file instead of `-' means the standard input.

          -p   Print total connect time for each user.

          -d   Print totals for each day.

          The accounting file is maintained by init and login(8), pro-
          vided it exists.  To start accounting, create it with length
          0.  When accounting is turned on, the file grows without
          limit.  It is prudent periodically to process the data and
          truncate the file.

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