System Administration Guide

How to Find Who Is Logged In to a Remote System

Find who is logged in to a remote system by using the rusers(1) command.


$ rusers [-l] remote-system-name

rusers

(No options) Displays the name of the system followed by the name of users currently logged in to it, including root. 

-l

Displays additional information about each user: the user's login window, login time and date, amount of time logged in, and the name of the remote system from which the user logged on.  

Example--Finding Who Is Logged In to a Remote System

The following example shows the short output of rusers.


$ rusers pluto
pluto    smith  jones

In the following example, the long version of rusers show that two users are logged in to the remote system named pluto. The first user logged in from the system console on November 18 and has been logged on for 4 hours and 10 minutes. The second user logged in from a remote system, mars, on the same date, and has been logged on for a similar amount of time.


$ rusers -l pluto
smith     pluto:console       Nov 18 09:19     4:10
jones     mars:console        Nov 18 09:20     4:11   (mars)