3.6.2. 在管理 CLI 里显示活动用户
前提条件
whoami 操作是用于确定当前活动用户的全局操作。这个操作开放了用户名标识及它们分配的区。管理员可以用 whoami 操作来管理多个区上的多个用户帐号,或者跟踪具有多个终端会话和用户帐号的域实例上的活动用户。
过程 3.14. 在管理 CLI 里用 whoami 操作显示活动用户
运行
whoami操作在管理 CLI 里,请用whoami操作来显示活动的用户帐号。[standalone@localhost:9999 /]
:whoami下面的例子使用了独立服务器实例里的whoami操作来显示活动用户 username,以及它所分配的ManagementRealm区。例 3.8. 在独立实例里使用
whoami[standalone@localhost:9999 /]:whoami { "outcome" => "success", "result" => {"identity" => { "username" => "username", "realm" => "ManagementRealm" }} }
显示当前的活动用户帐号。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.