Forrest logo
tool overview
On this page you find all important commands for the CLI tool ac. If the command you are looking for is missing please ask our AI.

ac

The ac command line tool is often used to print out statistics about user logins, including the time when a user has logged in and out. The name "ac" is an abbreviation for "accounting."

Typically, the ac command is run with the -p option to retrieve the details from the system's accounting logs. These logs contain information about user sessions, such as duration, idle time, number of processes, and more.

The ac command output is usually organized by day, and it shows individual user statistics, as well as summary information. It can be helpful for system administrators to monitor user activity patterns, track resource usage, or identify potential security issues.

Please note that the availability and functionality of the ac command may vary depending on the operating system and its version.

List of commands for ac:

  • ac:tldr:3f577 ac: Print how long a particular user has been connected in hours per day (with total).
    $ ac -dp ${username}
    try on your machine
    explain this command
  • ac:tldr:483fe ac: Print how long a particular user has been connected in hours.
    $ ac --individual-totals ${username}
    try on your machine
    explain this command
  • ac:tldr:614ba ac: Also display additional details.
    $ ac --compatibility
    try on your machine
    explain this command
  • ac:tldr:7782e ac: Print how long a particular user has been connected in hours per day (with total).
    $ ac --daily-totals --individual-totals ${username}
    try on your machine
    explain this command
  • ac:tldr:96a27 ac: Print how long users have been connected in hours.
    $ ac --individual-totals
    try on your machine
    explain this command
  • ac:tldr:a921a ac: Print how long a particular user has been connected in hours.
    $ ac -p ${username}
    try on your machine
    explain this command
  • ac:tldr:b1ab7 ac: Print how long users have been connected in hours.
    $ ac -p
    try on your machine
    explain this command
  • ac:tldr:e2075 ac: Print how long the current user has been connected in hours.
    $ ac
    try on your machine
    explain this command
tool overview