Beginner
Package: procps
w
Show who is logged in and what they are doing.
Syntax
w [username]
Description
w lists every logged-in user, their terminal, login time, idle time and current command, combining the output of who with a summary of system load.
Examples
w
Show all logged-in users and their activity
w alice
Show sessions for a specific user only