《OpenBSD手册》w命令

OpenBSD FAQ中文版、PF指南中文版、OpenBSD用户手册...
主题已锁定
头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

《OpenBSD手册》w命令

帖子 leo » 2010-01-21 15:21

W(1) OpenBSD参考手册 W(1)

名称
[INDENT]w - 显示已经登入的用户及其正在干什么
[/INDENT]
语法
[INDENT]w [-ahi] [-M core] [-N system] [user]
[/INDENT]
描述
[INDENT]w程序在屏幕上打印一个当前系统活动的摘要, 包括每个用户正在做什么。
第一行显示的是今天的时间, 系统运行了多长时间, 登入进系统的用户数,
以及平均负载。 三个平均负载数值分别是1,5,15分钟内的运行序列的任务数。

输出区域是用户的登录名称, 使用的终端名称, 从哪台主机登入系统, 登入的时间,
最后击键的时间, 当前使用的进程的名称和参数。

可用以下参数:

-a 试图将网络地址转换为名称.

-h 不输出头部信息,也就是正常输出的第一行。

-i 以空闲时间的顺序排序。

-M core
[INDENT]从来自指定core的名单里提取相关数值,而不是从运行的内核中。
[/INDENT]
-N system
[INDENT]从指定的系统中提取名单,而不是从运行的内核中。
[/INDENT]
如果指定一个用户名,就只输出该用户的相关信息。
[/INDENT]
文件
/var/run/utmp 系统上的用户清单

也请参阅
finger(1), ps(1), uptime(1), who(1), utmp(5)

标准
-f, -l, -s, -u, 和 -w 标签不再被支持。

历史
w命令起始于3.0BSD.

BUGS
The notion of the ``current process'' is muddy. The current algorithm is
``the highest numbered process on the terminal that is not ignoring in-
terrupts, or, if there is none, the highest numbered process on the ter-
minal.'' This fails, for example, in critical sections of programs like
the shell and editor, or when faulty programs running in the background
fork and fail to ignore interrupts. (In cases where no process can be
found, w prints ``-''.)

Background processes are not shown, even though they account for much of
the load on the system.

Sometimes processes, typically those in the background, are printed with
null or garbaged arguments. In these cases, the name of the command is
printed in parentheses.

The w utility does not know about the new conventions for detection of
background jobs. It will sometimes find a background job instead of the
right one.


OpenBSD 4.8 May 31, 2007 OpenBSD 4.8

主题已锁定

在线用户

正浏览此版面之用户: Semrush [Bot] 和 37 访客