[PLUG] how to find who is logged on gui?

Kaustubh Gadkari kaustubh.gadkari at gmail.com
Tue Dec 1 00:00:51 PST 2009

On Mon, Nov 23, 2009 at 1:06 PM, Knight Samar <knightsamar at gmail.com> wrote:
> Hi,
> How can we find out which users have logged on the GUI ?
> I know that grepping the output of ps aux for all users who are running
> x-session-manager is one way, but is there a simpler one ?

Try the 'who' command.

$ who
kaustubh :0           2009-11-30 15:40
kaustubh pts/0        2009-11-30 15:40 (:0)

Look for lines where the second column is :0, :1 etc .. those are the
users who have active X sessions.


Kaustubh Gadkari
kaustubh [dot] gadkari [at] gmail [dot] com

More information about the plug-mail mailing list