w
[
options
] [
user
]
Print summaries of system usage, currently logged-in users, and what they are doing. w
is essentially a combination of uptime
, who
, and ps -a
. Display output for one user by specifying user
.
-h
Suppress headings and uptime
information.
-l
Display in long format (the default).
-s
Display in short format.
-u
Print just the heading line. Equivalent to uptime
. Solaris only.
-w
Same as -1
. Solaris only.