Use the ac command in Linux to display the user's total connection time

Source: Internet
Author: User
In Linux, use the ac command to display the user's total connection time in Linux. we can use the ac command to display the user's logon time information. Currently, you can use the d option in the ac command to display the output time by day. In this example, I have logged on to the system today...
In Linux, use the ac command to display the user's total connection time in Linux. we can use the ac command to display the user's logon time information. Currently, you can use the d option in the ac command to display the output time by day. In this example, I have logged on to the system for more than six hours today. on January 1, December 1, I logged on to the system for about one hour. Www.2cto.com $ ac-d Dec 1 total 1.08 Dec 2 total 0.99 Dec 3 total 3.39 Dec 4 total 4.50 Today total 6.10 the connection time of all users is shown below, you can use "-p" to display the connection time of all users. Note that this shows the total connection time of each user. $ Ac-p john 3.64 madison 0.06 sanjay 88.17 nisha 105.92 ramesh 111.42 total 309.21 display the connection time of the specified user www.2cto.com $ ac-d sanjay Jul 2 total 12.85 Aug 25 total 5.05 Sep 3 total 1.03 sep 4 total 5.37Dec 24 total 8.15 Dec 29 total 1.42 Today total 2.95
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.