Go to main content

手册页部分 1:用户命令

退出打印视图

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

rusers(1)

名称

rusers - 输出登录远程计算机的用户信息

用法概要

rusers [-ahilu] host...

描述

rusers 命令可生成与 who(1) 类似的输出,但其面向远程计算机。列表按照收到响应的顺序排列,但是可通过指定以下所列选项中的一个来更改此顺序。

缺省情况下将输出登录用户的名称。当给定 –l 标志时,系统将为每位用户输出其他信息:

userid hostname:terminal login_date login_time idle_time login_host

If hostname and login_host are the same value, the login_host field is not displayed.类似地,如果 hostname 未处于空闲状态,则不会显示 idle_time

A remote host will only respond if it is running the rpc.rusersd(8) daemon, which may be started up from inetd(8) under the service identifier svc:/network/rpc/rusers:default.This service is disabled by default on Solaris 10 systems with a secure by default configuration and on all Solaris 11 systems, and must be enabled by an administrator in order for a host to respond to rusers queries.

If no name can be found for a host via the hosts(5) name service, rusers displays a numeric IP address for the host.

选项

–a

为计算机提供报告,即使无用户登录。

–h

按主机名的字母顺序排序。

–i

按空闲时间排序。

–l

按照 who(1) 的样式提供较长的列表。

–u

按照用户数量排序。

属性

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

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

另请参见

who(1), attributes(7), inetd(8), rpc.rusersd(8)

History

The rusers command, including support for the options –a, –h, and –i, –l, and –u, has been present since the initial release of Solaris.