Skip to content

w

Concise reference for the Linux w command showing logged-in users, system uptime, load, and active processes, including container-aware output and common formatting options


Dump data for $(whoami)

w

Show container uptime

w --container

Do not print header

w --no-header

Ignore current process username

w --no-current

Short format

w --short 

Show remote hostname field

w --from

Old style output

w --old-style

Display IP address instead of hostname

w --ip-addr

Show the PID(s) of processes in what

w --pids