Linux server system command ac command

  

ac command for Linux server system command

The ac command reports the user connection time (hours) according to the login entry and exit in the current /var/log/wtmp file. If the flag is not used, Report the total time. For example, typing the ac command and pressing the Enter key will display the following:

total 5177.47

Type the ac -d command and press Enter to display the total daily connection. Time:

Aug 12 total 261.87

Aug 13 total 351.39

Aug 14 total 396.09

Aug 15 total 462.63

Aug 16 Total 270.45

Aug 17 total 104.29

Today total 179.02

Type the ac -p command and press Enter to display the total connection time for each user:

ynguo 193.23

yucao 3.35

rong 133.40

hdai 10.52

zjzhu 52.87

zqzhou 13.14

liangliu 24.34

total 5178.24

Copyright © Windows knowledge All Rights Reserved