[Ilugc] One Day One GNU/Linux Command (AC)

  • From: sbharathi@xxxxxxxxxxxxx (Bharathi Subramanian)
  • Date: Wed May 7 11:10:38 2008

One Day One GNU/Linux Command
=============================

ac -  Print statistics about users' connect time

Summary: 

"ac" command will print the users' connect time details in different
formats (Total, Per day, Per user, etc..). It collect this information
from the /var/log/wtmp file.

Example:

$ ac -- Print total usage.

$ ac -f /var/log/wtmp.1 -- Read the info from different wtmp file.

$ ac -p  -- Print individual user info.

$ ac -dy -- Print daily based report.

$ ac --complain -- Detect the time-warp, missing record, etc., and 
                   show appropriate error message.

Read: man ac, wtmp

HTH :)
-- 
Bharathi S

Other related posts: