Linux being a multi-user system allows multiple users to sign in and run various programs at the same time.

There are several methods to list current logged-in users on Linux and see what they are doing.

The users Command

The users command in Linux lists all users who are currently logged in in alphabetic order.

a person using a laptop on wooden stand

Note that if a user has two login sessions, it will appear twice in the output.

The output below tells that there are three users logged into the system currently.

Using the w Command

The w command in Linux shows logged-in users and their activities.

users command

It prints the list of users and their current processes in the command line.

Using the last Command

The last command lists current as well as past logged-in and logged-out users.

you might easily install finger on your Linux distribution using the default package managers.

who command

It alsoshows the processes that are currently running on the systemand their resource usage.

who command output

w command

last command

finger command

finger command user

top command