ac
Quick Reference
Command Name:
ac
Category:
system management
Platform:
linux
Basic Usage:
Common Use Cases
Syntax
ac [options] [users...]
Options
Option | Description |
---|---|
-d, --daily-totals | Print totals for each day instead of just one big total |
-p, --individual-totals | Print time totals for each user |
-f, --file | Read from specified file instead of /var/log/wtmp |
--complain | Print complaints about bad records in input data |
--reboots | Print reboot records |
--supplants | Print login session suppression records |
--timewarps | Print time warp records |
--compatibility | Print in more traditional format |
-a, --all | Print all records from database |
-t, --today | Report connect time only for today |
-y, --yesterday | Report connect time only for yesterday |
--print-year | Print year on output |
--print-zeros | Print entries with zero time |
-w, --print-wtmp-file | Print the wtmp file that's being read |
--debug | Print verbose internal information |
-h, --hours-only | Print hours instead of hours and minutes |
--seconds | Print seconds instead of hours and minutes |
--minutes | Print minutes instead of hours and minutes |
--time-format=format | Set format for printing times (hours, minutes, seconds, exact, iso, posix) |
--help | Display help information and exit |
--version | Output version information and exit |
Examples
How to Use These Examples
The examples below show common ways to use the ac
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
Basic Examples:
# Print total connect time for all users ac
Advanced Examples:
# Display individual totals for each day and the overall total ac -dp