Back to the command reference

w

UsersBeginner In simulator In real Linux

Show who is logged in and what they are doing

Name: w: short for who, plus what they are doing

You can practise it right away in the simulator, and use it in real Linux mode too.

Description

w shows who is logged in and what they are doing: terminal, origin, login and idle time and current command for each user, with an uptime-style load line on top.

Syntax

w [OPTION]... [USER]

Common options

-h / --no-headerLeave out the header
-s / --shortShort format (no login time or CPU times)
-i / --ip-addrShow addresses instead of host names
USEROnly one user

Examples

  • $ w

    Users, idle time and what they run

    Explain

Related