3 .TH W "1" "2020-06-04" "procps-ng" "User Commands"
5 w \- Show who is logged on and what they are doing.
8 [\fIoptions\fR] \fIuser\fR [...]
11 displays information about the users currently on the machine, and their
12 processes. The header shows, in this order, the current time, how long the
13 system has been running, how many users are currently logged on, and the
14 system load averages for the past 1, 5, and 15 minutes.
16 The following entries are displayed for each user: login name, the tty name,
17 the remote host, login time, idle time, JCPU, PCPU, and the command line of
18 their current process.
20 The JCPU time is the time used by all processes attached to the tty. It does
21 not include past background jobs, but does include currently running
24 The PCPU time is the time used by the current process, named in the "what"
26 .SH "COMMAND\-LINE OPTIONS"
28 \fB\-h\fR, \fB\-\-no\-header\fR
29 Don't print the header.
31 \fB\-u\fR, \fB\-\-no\-current\fR
32 Ignores the username while figuring out the
33 current process and cpu times. To demonstrate this, do a
40 \fB\-s\fR, \fB\-\-short\fR
41 Use the short format. Don't print the login time, JCPU or PCPU times.
43 \fB\-f\fR, \fB\-\-from\fR
46 (remote hostname) field. The default as released is for the
48 field to not be printed, although your system administrator or distribution
49 maintainer may have compiled a version in which the
51 field is shown by default.
54 Display help text and exit.
56 \fB\-i\fR, \fB\-\-ip\-addr\fR
57 Display IP address instead of hostname for \fBfrom\fR field.
59 \fB\-V\fR, \fB\-\-version\fR
60 Display version information.
62 \fB\-o\fR, \fB\-\-old\-style\fR
63 Old style output. Prints blank space for idle times less than one minute.
66 Show information about the specified user only.
70 Override the default width of the username column. Defaults to 8.
73 Override the default width of the from column. Defaults to 16.
77 information about who is currently logged on
90 was re-written almost entirely by Charles Blake, based on the version by
91 .UR greenfie@\:gauss.\:rutgers.\:edu
95 .UR johnsonm@\:redhat.\:com
99 Please send bug reports to
100 .UR procps@freelists.org