Forrest logo
back to the ac tool

ac:tldr:483fe

ac: Print how long a particular user has been connected in hours.
$ ac --individual-totals ${username}
try on your machine

This command is using the "ac" command in a Unix-like operating system (such as Linux) to display individual totals of logged-in time for a specific user.

Here's a breakdown of the command:

  • "ac": It is the command used to display statistics about users' connect time. It counts the amount of time a user is logged in and the number of connect sessions made by each user.

  • "--individual-totals": It is an option or flag used with the "ac" command. This option tells the command to provide individual totals for each user, rather than a combined total.

  • "${username}": It is a placeholder or variable that should be replaced with the actual username, for whom the individual total logged-in time is to be checked. For example, if the username is "john", you should replace ${username} with 'john' in the command.

So, by running this command with the appropriate username, it will display the total time the specified user has spent logged in.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the ac tool