OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / procps / original / man1 / w.1
1 .\"             -*-Nroff-*-
2 .\"
3 .TH W 1 "8 Dec 1993 " " " "Linux User's Manual"
4 .SH NAME
5 w \- Show who is logged on and what they are doing.
6 .SH SYNOPSIS
7 .B w \-
8 .RB [ husfV ]
9 .RI [ user ]
10 .SH DESCRIPTION
11 .B "w "
12 displays information about the users currently on the machine,
13 and their processes.
14 The header shows, in this order,  the current time,
15 how long the system has been running,
16 how many users are currently logged on,
17 and the system load averages for the past 1, 5, and 15 minutes.
18 .sp
19 The following entries are displayed for each user:
20 login name, the tty name, the remote host, login time, idle time, JCPU, PCPU,
21 and the command line of their current process.
22 .sp
23 The JCPU time is the time used by all processes attached to the tty.  It
24 does not include past background jobs, but does include currently
25 running background jobs.
26 .sp
27 The PCPU time is the time used by the current process, named in the "what"
28 field.
29
30 .PP
31 .SH "COMMAND\-LINE OPTIONS"
32 .TP 0.5i
33 .B "\-h "
34 Don't print the header.
35 .TP 0.5i
36 .B "\-u "
37 Ignores the username while figuring out the current process and cpu
38 times.  To demonstrate this, do a "su" and do a "w" and a "w -u".
39 .TP 0.5i
40 .B "\-s "
41 Use the short format.
42 Don't print the login time, JCPU or PCPU times.
43 .TP 0.5i
44 .B "\-f "
45 Toggle printing the
46 .B from
47 (remote hostname) field.  The default as
48 released is for the
49 .B from
50 field to not be printed, although your system administrator or
51 distribution maintainer may have compiled a version in which the
52 .B from
53 field is shown by default.
54 .TP 0.5i
55 .B "\-V "
56 Display version information.
57 .TP 0.5i
58 .B "user "
59 Show information about the specified user only.
60
61 .SH FILES
62 .TP
63 .I /var/run/utmp
64 information about who is currently logged on
65 .TP
66 .I /proc
67 process information
68 .PP
69
70 .SH "SEE ALSO"
71 .BR free (1),
72 .BR ps (1),
73 .BR top (1),
74 .BR uptime (1),
75 .BR utmp (5),
76 .BR who (1)
77
78 .SH AUTHORS
79 .B w
80 was re-written almost entirely by Charles Blake, based on the version by Larry
81 Greenfield <greenfie@gauss.rutgers.edu> and Michael K. Johnson
82 <johnsonm@redhat.com>.
83
84 Please send bug reports to <albert@users.sf.net>