Trying to find out if a particular user is logged into the machine, specifically the user using the graphical user interface.
Is this possible via command line?
|
Trying to find out if a particular user is logged into the machine, specifically the user using the graphical user interface. Is this possible via command line?
| |||||||||
feedback
|
|
GUI:
Command Line:
In a C program: The C code in Technical Q&A QA1133: Determining console user login status shows how to determine which user owns the active GUI session. For example:
| |||
|
feedback
|
|
Via the command line, | |||||
feedback
|