Bump to procps-ng 3.3.16
[platform/upstream/procps-ng.git] / w.1
1 .\"             -*-Nroff-*-
2 .\"
3 .TH W "1" "May 2012" "procps-ng" "User Commands"
4 .SH NAME
5 w \- Show who is logged on and what they are doing.
6 .SH SYNOPSIS
7 .B w
8 [\fIoptions\fR] \fIuser\fR [...]
9 .SH DESCRIPTION
10 .B w
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.
15 .PP
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.
19 .PP
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
22 background jobs.
23 .PP
24 The PCPU time is the time used by the current process, named in the "what"
25 field.
26 .SH "COMMAND\-LINE OPTIONS"
27 .TP
28 \fB\-h\fR, \fB\-\-no\-header\fR
29 Don't print the header.
30 .TP
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 "su" and do a "w"
34 and a "w \-u".
35 .TP
36 \fB\-s\fR, \fB\-\-short\fR
37 Use the short format.  Don't print the login time, JCPU or PCPU times.
38 .TP
39 \fB\-f\fR, \fB\-\-from\fR
40 Toggle printing the
41 .B from
42 (remote hostname) field.  The default as released is for the
43 .B from
44 field to not be printed, although your system administrator or distribution
45 maintainer may have compiled a version in which the
46 .B from
47 field is shown by default.
48 .TP
49 \fB\-\-help\fR
50 Display help text and exit.
51 .TP
52 \fB\-i\fR, \fB\-\-ip\-addr\fR
53 Display IP address instead of hostname for \fBfrom\fR field.
54 .TP
55 \fB\-V\fR, \fB\-\-version\fR
56 Display version information.
57 .TP
58 \fB\-o\fR, \fB\-\-old\-style\fR
59 Old style output.  Prints blank space for idle times less than one minute.
60 .TP
61 .B "user "
62 Show information about the specified user only.
63 .SH ENVIRONMENT
64 .TP
65 PROCPS_USERLEN
66 Override the default width of the username column.  Defaults to 8.
67 .TP
68 PROCPS_FROMLEN
69 Override the default width of the from column.  Defaults to 16.
70 .SH FILES
71 .TP
72 .I /var/run/utmp
73 information about who is currently logged on
74 .TP
75 .I /proc
76 process information
77 .SH "SEE ALSO"
78 .BR free (1),
79 .BR ps (1),
80 .BR top (1),
81 .BR uptime (1),
82 .BR utmp (5),
83 .BR who (1)
84 .SH AUTHORS
85 .B w
86 was re-written almost entirely by Charles Blake, based on the version by
87 .UR greenfie@\:gauss.\:rutgers.\:edu
88 Larry Greenfield
89 .UE
90 and
91 .UR johnsonm@\:redhat.\:com
92 Michael K. Johnson
93 .UE
94 .SH "REPORTING BUGS"
95 Please send bug reports to
96 .UR procps@freelists.org
97 .UE