157 lines
4.1 KiB
HTML
157 lines
4.1 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of W</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>W</H1>
|
|
Section: User Commands (1)<BR>Updated: May 2012<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
w - Show who is logged on and what they are doing.
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>w</B>
|
|
|
|
[<I>options</I>] <I>user</I> [...]
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<B>w</B>
|
|
|
|
displays information about the users currently on the machine, and their
|
|
processes. The header shows, in this order, the current time, how long the
|
|
system has been running, how many users are currently logged on, and the
|
|
system load averages for the past 1, 5, and 15 minutes.
|
|
<P>
|
|
|
|
The following entries are displayed for each user: login name, the tty name,
|
|
the remote host, login time, idle time, JCPU, PCPU, and the command line of
|
|
their current process.
|
|
<P>
|
|
|
|
The JCPU time is the time used by all processes attached to the tty. It does
|
|
not include past background jobs, but does include currently running
|
|
background jobs.
|
|
<P>
|
|
|
|
The PCPU time is the time used by the current process, named in the "what"
|
|
field.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>COMMAND-LINE OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-h</B>, <B>--no-header</B><DD>
|
|
Don't print the header.
|
|
<DT id="2"><B>-u</B>, <B>--no-current</B><DD>
|
|
Ignores the username while figuring out the
|
|
current process and cpu times. To demonstrate this, do a "su" and do a "w"
|
|
and a "w -u".
|
|
<DT id="3"><B>-s</B>, <B>--short</B><DD>
|
|
Use the short format. Don't print the login time, JCPU or PCPU times.
|
|
<DT id="4"><B>-f</B>, <B>--from</B><DD>
|
|
Toggle printing the
|
|
<B>from</B>
|
|
|
|
(remote hostname) field. The default as released is for the
|
|
<B>from</B>
|
|
|
|
field to not be printed, although your system administrator or distribution
|
|
maintainer may have compiled a version in which the
|
|
<B>from</B>
|
|
|
|
field is shown by default.
|
|
<DT id="5"><B>--help</B><DD>
|
|
Display help text and exit.
|
|
<DT id="6"><B>-i</B>, <B>--ip-addr</B><DD>
|
|
Display IP address instead of hostname for <B>from</B> field.
|
|
<DT id="7"><B>-V</B>, <B>--version</B><DD>
|
|
Display version information.
|
|
<DT id="8"><B>-o</B>, <B>--old-style</B><DD>
|
|
Old style output. Prints blank space for idle times less than one minute.
|
|
<DT id="9"><B>user </B>
|
|
|
|
<DD>
|
|
Show information about the specified user only.
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>ENVIRONMENT</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="10">PROCPS_USERLEN<DD>
|
|
Override the default width of the username column. Defaults to 8.
|
|
<DT id="11">PROCPS_FROMLEN<DD>
|
|
Override the default width of the from column. Defaults to 16.
|
|
</DL>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>FILES</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="12"><I>/var/run/utmp</I>
|
|
|
|
<DD>
|
|
information about who is currently logged on
|
|
<DT id="13"><I>/proc</I>
|
|
|
|
<DD>
|
|
process information
|
|
</DL>
|
|
<A NAME="lbAH"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+free">free</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+ps">ps</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+top">top</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+uptime">uptime</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+utmp">utmp</A></B>(5),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+who">who</A></B>(1)
|
|
|
|
<A NAME="lbAI"> </A>
|
|
<H2>AUTHORS</H2>
|
|
|
|
<B>w</B>
|
|
|
|
was re-written almost entirely by Charles Blake, based on the version by
|
|
|
|
Larry Greenfield
|
|
|
|
and
|
|
|
|
Michael K. Johnson
|
|
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>REPORTING BUGS</H2>
|
|
|
|
Please send bug reports to
|
|
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="14"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="15"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="16"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="17"><A HREF="#lbAE">COMMAND-LINE OPTIONS</A><DD>
|
|
<DT id="18"><A HREF="#lbAF">ENVIRONMENT</A><DD>
|
|
<DT id="19"><A HREF="#lbAG">FILES</A><DD>
|
|
<DT id="20"><A HREF="#lbAH">SEE ALSO</A><DD>
|
|
<DT id="21"><A HREF="#lbAI">AUTHORS</A><DD>
|
|
<DT id="22"><A HREF="#lbAJ">REPORTING BUGS</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:29 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|