Quantcast
Channel: krypted – krypted
Viewing all articles
Browse latest Browse all 1241

See How Long The Active User Has Logged In On A Mac

$
0
0

The following will grab you an integer of the number of hours an active user has logged into a computer:

user=$( ls -l /dev/console | awk '{ print $3 }' ) ; ac users $user | awk '{ print $2 }'

 


Viewing all articles
Browse latest Browse all 1241

Trending Articles