Ac command will display the statistics about the user’s connect time.
Connect time for the current logged in user
With the option –d, it will break down the output for the individual days. In
this example, I’ve been logged in to the system for more than 6 hours today.
On Dec 1st, I was logged in for about 1 hour.
$ ac –d
Dec 1
Dec 2
Dec 3
Dec 4
Today
total
total
total
total
total
1.08
0.99
3.39
4.50
6.10
Connect time for all the users
To display connect time for all the users use –p as shown below. Please note
that this indicates the cumulative connect time for the individual users.
$ ac -p
john
madison
sanjay
nisha
3.64
0.06
88.17
105.92
ramesh
total 309.21
111.42
Connect time for a specific user
To get a connect time report for a specific user, execute the following:
$ ac -d sanjay
Jul 2
Aug 25
Sep 3
Sep 4
Dec 24
Dec 29
Today
total
total
total
total
total
total
total
12.85
5.05
1.03
5.37
8.15
1.42
2.95
Connect time for the current logged in user
With the option –d, it will break down the output for the individual days. In
this example, I’ve been logged in to the system for more than 6 hours today.
On Dec 1st, I was logged in for about 1 hour.
$ ac –d
Dec 1
Dec 2
Dec 3
Dec 4
Today
total
total
total
total
total
1.08
0.99
3.39
4.50
6.10
Connect time for all the users
To display connect time for all the users use –p as shown below. Please note
that this indicates the cumulative connect time for the individual users.
$ ac -p
john
madison
sanjay
nisha
3.64
0.06
88.17
105.92
ramesh
total 309.21
111.42
Connect time for a specific user
To get a connect time report for a specific user, execute the following:
$ ac -d sanjay
Jul 2
Aug 25
Sep 3
Sep 4
Dec 24
Dec 29
Today
total
total
total
total
total
total
total
12.85
5.05
1.03
5.37
8.15
1.42
2.95
No comments:
Post a Comment