O'Reilly logo

A Practical Guide to Red Hat® Linux® 8 by Mark G. Sobell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required