ac Command Examples in Linux

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.

Syntax:

# ac [options]

Example:

$ ac
    total     1774.81

ac Command Examples

1. To get the connect time for a user:

# ac root

2. To get the daily totals:

# ac -d

3. To get the individual totals:

# ac -p

4. To get the verbose internal information:

# ac --debug

5. To get the version of the “ac” command:

# ac -V
Related Post