w (display system information)

Displays system usage and user information. Shows whether a user is logged in and what the account is doing.

Format:    w user
Examples:  w janet2

If user is not included, w shows all the users who are logged in and what they are doing.

Get Spring Into Linux® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.