w

Displays information on system users

w [options] [login-name]

The w utility displays the names of users who are currently logged in, together with their terminal device numbers, the times they logged in, which commands they are running, and other information.

Options

-f

from Removes the FROM column. For users who are directly connected, this field contains a dash.

-h

no header Suppresses the output of the header line that is normally displayed by the w utility.

-s

short Displays less information: user name, terminal device, idle time, and the command names.

Arguments

If a login-name is supplied as an argument to the w utility, the display is restricted to information about that user.

Discussion

The first line that w displays is the same ...

Get A Practical Guide to Red Hat® Linux® 8 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.