HOWTO view what users are / was logged on a system
From LinuxReviews
Jump to navigationJump to searchYou can see who's logged into a GNU/Linux machine with any of the following commands:
w
who -a
users
and you can use the last
command to see who's been logging into the machine in the past.