📄 w.1
字号:
.\" SCCSID: @(#)w.1 8.1 9/11/90.TH w 1.SH Namew \- display who is logged in and what they are doing.SH Syntax.B w[ \fIoptions\fR ] [\|\fIuser\fR\|].SH Description.NXR "w command" The.PN wcommandprints a summary of the current activity on the system,including what each user is doing.The heading line shows the current time of day,how long the system has been up,the number of users logged into the system,and the load averages.The load average numbers give the number of jobs in the run queueaveraged over 1, 5 and 15 minutes..PPThe fields output are:.NXR "w command" "output fields".NXR "terminal" "showing name".NXR "system" "showing login time".NXR "date" "showing".NXR "time" "showing".NXR "system" "showing uptime".NXR "system" "showing users".NXR "system" "showing run queue average".NXR "system" "showing user activity".NXR "process" "printing status".nfThe users login nameThe name of the tty the user is onThe host from which the user is logged inThe time of day the user logged onThe number of minutes since the user last typed anythingThe CPU time used by all processes and their children on that terminalThe CPU time used by the currently active processesThe name and arguments of the current process.fi.SH Options.NXR "w command" "options".IP \fB\-d\fR 0.3iOutputs debug information..IP \fB\-f\fR 0.3iSuppresses the `from' field..IP \fB\-h\fR 0.3iSuppresses the normal header from the output. .IP \fB\-l\fR 0.3iDisplays information in long format (default). .IP \fB\-s\fR 0.3iDisplays information in short format. In the short form, the tty is abbreviated, the login time and cpu timesare left off, as are the arguments to commands..IP \fB\-u\fR 0.3iOutputs the same information as the .PN uptimecommand..IPIf a.I username is included,the output will be restricted to that user..SH Restrictions.NXR "w command" "restricted"The notion of the ``current process'' is unclear.The current algorithm is ``the highest numbered process onthe terminal that is not ignoring interrupts,or, if there is none, the highest numbered process on the terminal''.This fails, for example, in critical sections of programslike the shell and editor,or when faulty programs running in the backgroundfork and fail to ignore interrupts.(In cases where no process can be found,.PN wprints ``\-''.).PPThe CPU time is only an estimate, in particular, if someone leaves abackground process running after logging out, the person currentlyon that terminal is ``charged'' with 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, areprinted with null or garbaged arguments.In these cases, the name of the command is printed in parentheses..PPThe.PN wcommand does not know about conventionsfor detection of background jobs.It will sometimes find a background job instead of the right one..SH Files.ta 1i/etc/utmp.br/dev/kmem.br/dev/drum.SH See Alsofinger(1), ps(1), who(1)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -