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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access