Closed Captioning Closed captioning available on our YouTube channel

How to use the ac command: 2-Minute Linux Tips

Network World | Sep 20, 2019

Learn how to use the ac command. It reports on user login times, so if you’re interested in knowing how much time various users are spending on a Linux server, this command is a good choice.

Copyright © 2019 IDG Communications, Inc.

Similar
Hi, this is Sandra Henry-Stocker, author of the “Unix as a Second Language” blog on NetworkWorld.
In this Linux tip, we’re going to look at the ac command that reports on user login times. If you’re interested in knowing how much time various users are spending on a Linux server, this command is a good choice.
If you type the command ac by itself, you’re going to see how much time all users have spent logged in since the current /var/log/wtmp file has been recording login sessions. That may be many months or just a short time.
In this case, that’s quite a few hours. To break that number down by user, use the -p (people) option:
To list user login time by day, you might use a command like this:
This command shows use that the /var/log/wtmp file was started in October.
That’s your Linux tip for ac. If you have questions or would like to suggest a topic, please add a comment below. And don’t forget to subscribe to the IDG Tech(talk) channel on YouTube.
If you liked this video, please hit the like and share buttons. For more Linux tips, be sure to follow us on Facebook, YouTube and NetworkWorld.com.
Popular
Featured videos from IDG.tv