Go to main content

手册页部分 1:用户命令

退出打印视图

更新时间: 2022年7月27日 星期三
 
 

rwho(1)

名称

rwho - 谁已登录到本地计算机

用法概要

rwho [-a]

描述

The rwho command produces output similar to who(1), for each machine on the local network which is actively running the in.rwhod(8) service.如果 5 分钟内没有从某计算机收到任何报告,则 rwho 会假定该计算机为关机状态,并不会报告上次登录到该计算机的用户。

如果用户超过一分钟没有向系统键入任何内容,则 rwho 会报告此空闲时间。如果用户超过一小时没有向系统键入任何内容,则会在 rwho 输出中省略该用户,除非提供了 –a 标志。

选项

–a

报告所有用户,不管他们有没有在过去一个小时内向系统键入任何内容。

文件

/var/spool/rwho/whod.*

有关其他计算机的信息

属性

有关下列属性的说明,请参见 attributes(7)

属性类型
属性值
可用性
network/legacy-remote-utilities
Interface Stability
Obsolete

另请参见

finger(1), ruptime(1), rusers(1), who(1), attributes(7), in.rwhod(8)

附注

rwho 无法通过网关工作。

主机上必须存在 /var/spool/rwho 目录,rwho 从该目录中运行。

随着本地网络上主机数量的增加,此服务会逐渐占用更多的网络带宽。对于大型网络而言,成本会变得太高。

为了确保此命令返回有效结果,必须启用 rwho 服务守护进程 in.rwhod(8)

将来的 Oracle Solaris 发行版可能会删除此技术。

History

The rwho command, including support for the –a option, has been present since the initial release of Solaris.