1W(1) Linux User's Manual W(1)
2
3
4
6 w - Show who is logged on and what they are doing.
7
9 w - [husfV] [user]
10
12 w displays information about the users currently on the machine, and
13 their processes. The header shows, in this order, the current time,
14 how long the system has been running, how many users are currently
15 logged on, and the system load averages for the past 1, 5, and 15 min‐
16 utes.
17
18 The following entries are displayed for each user: login name, the tty
19 name, the remote host, login time, idle time, JCPU, PCPU, and the com‐
20 mand line of their current process.
21
22 The JCPU time is the time used by all processes attached to the tty.
23 It does not include past background jobs, but does include currently
24 running background jobs.
25
26 The PCPU time is the time used by the current process, named in the
27 "what" field.
28
29
31 -h Don't print the header.
32
33 -u Ignores the username while figuring out the current process and
34 cpu times. To demonstrate this, do a "su" and do a "w" and a "w
35 -u".
36
37 -s Use the short format. Don't print the login time, JCPU or PCPU
38 times.
39
40 -f Toggle printing the from (remote hostname) field. The default as
41 released is for the from field to not be printed, although your
42 system administrator or distribution maintainer may have compiled
43 a version in which the from field is shown by default.
44
45 -V Display version information.
46
47 user Show information about the specified user only.
48
49
51 /var/run/utmp
52 information about who is currently logged on
53
54 /proc process information
55
57 free(1), ps(1), top(1), uptime(1), utmp(5), who(1)
58
59
61 w was re-written almost entirely by Charles Blake, based on the version
62 by Larry Greenfield <greenfie@gauss.rutgers.edu> and Michael K. Johnson
63 <johnsonm@redhat.com>.
64
65 Please send bug reports to <albert@users.sf.net>
66
67
68
69 8 Dec 1993 W(1)