w.1
来自「早期freebsd实现」· 1 代码 · 共 142 行
1
142 行
.\" Copyright (c) 1980, 1990, 1991, 1993.\" The Regents of the University of California. All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\" notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\" notice, this list of conditions and the following disclaimer in the.\" documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\" must display the following acknowledgement:.\" This product includes software developed by the University of.\" California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\" may be used to endorse or promote products derived from this software.\" without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\" @(#)w.1 8.1 (Berkeley) 6/6/93.\".Dd June 6, 1993.Dt W 1.Os BSD 4.Sh NAME.Nm w.Nd "who present users are and what they are doing".Sh SYNOPSIS.Nm w.Op Fl hin.Op Fl M Ar core.Op Fl N Ar system.Op Ar user.Sh DESCRIPTIONThe.Nm wutility prints a summary of the current activity on the system,including what each user is doing.The first line displays the current time of day, how long the system hasbeen running, the number of users logged into the system, and the loadaverages.The load average numbers give the number of jobs in the run queue averagedover 1, 5 and 15 minutes..PpThe fields output are the user's login name, the name of the terminal theuser is on, the host from which the user is logged in, the time the userlogged on, the time since the user last typed anything,and the name and arguments of the current process..PpThe options are as follows:.Bl -tag -width Ds.It Fl hSuppress the heading..It Fl iOutput is sorted by idle time..It Fl MExtract values associated with the name list from the specifiedcore instead of the default.Dq /dev/kmem ..It Fl NExtract the name list from the specified system instead of thedefault.Dq /vmunix ..It Fl nShow network addresses as numbers (normally.Nm winterprets addresses and attempts to display them symbolically)..El.PpIf a.Ar username is specified, the output is restricted to that user..Sh FILES.Bl -tag -width /var/run/utmp -compact.It Pa /var/run/utmplist of users on the system.El.Sh SEE ALSO.Xr who 1 ,.Xr finger 1 ,.Xr ps 1 ,.Xr uptime 1 ,.Sh BUGSThe notion of the.Dq current processis muddy.The current algorithm is ``the highest numbered process on the terminalthat is not ignoring interrupts, or, if there is none, the highest numberedprocess on the terminal''.This fails, for example, in critical sections of programs like the shelland editor, or when faulty programs running in the background fork and failto ignore interrupts.(In cases where no process can be found,.Nm wprints.Dq \- . ).PpThe.Tn CPUtime is only an estimate, in particular, if someone leaves a backgroundprocess running after logging out, the person currently on that terminal is.Dq chargedwith the time..PpBackground processes are not shown, even though they account formuch of the load on the system..PpSometimes processes, typically those in the background, are printed withnull or garbaged arguments.In these cases, the name of the command is printed in parentheses..PpThe .Nm wutility does not know about the new conventions for detection of backgroundjobs.It will sometimes find a background job instead of the right one..Sh COMPATIBILITYThe.Fl f ,.Fl l ,.Fl s ,and.Fl wflags are no longer supported..Sh HISTORYThe.Nmcommand appeared in.Ux 3.0 .
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?