How do i display how long I have been logged in each day?
-
Man page for ac.
Man page for wtmp, tmp.Note: The command is depended on the wtmp file: https://en.wikipedia.org/wiki/Utmp
To display daily statistics for your login account only. Hours, minutes.
$ ac -d Jul 3 total 13.52 Jul 4 total 66.23 Jul 6 total 129.23
To print your total login time.
$ ac total 12894.55
To display all users total login time.
$ ac -p
© Lightnetics 2024