www.delorie.com/gnu/docs/acct/accounting_4.html   search  
 
Buy GNU books!


Accounting Utilities Manual

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1. ac

The ac command prints out a report of connect time (in hours) based on the logins/logouts in the current wtmp file. A total is also printed out.

The accounting file wtmp is maintained by init and login. Neither of these programs creates the file; if the file is not there, no accounting is done. To begin accounting, create the file with a length of zero. NOTE: the wtmp file can get really big, really fast. You might want to trim it every once and a while.

GNU ac works nearly the same u*x ac, though it's a little smarter in its printing out of daily totals--it actually prints every day, rather than skipping to the date of the next entry in the wtmp file.


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright © 2003   by The Free Software Foundation     Updated Jun 2003  

Please take a moment to fill out this visitor survey
You can help support this site by visiting the advertisers that sponsor it! (only once each, though)