who
Linux Commands - Manage Users and Groups

who

The who command lists the users currently logged into the system. The information for who is kept in /var/run/utmp. A history of logins is kept in /var/log/wtmp.


Example:


who

root tty1 Mar 7 07:05

root pts/0 Mar 7 07:05

mike tty2 Mar 7 07:05