How to tell which user is active (which display is up)?

Robert Arkiletian robark at gmail.com
Wed Oct 27 19:15:40 UTC 2010


Assume there are two or more people logged in to separate X sessions
with "Switch User". If I ssh in to that box (as root), how can I tell
which user is the active one?
Put another way, is there any way to tell which display is currently
being shown.

-- 
Robert Arkiletian
Eric Hamber Secondary, Vancouver, Canada


More information about the users mailing list