Find who is Current OS user



Windows

Execute SET USERNAME command from the command prompt to check which user is currently logged in.

UNIX/Linux

Execute who am I at the command prompt to see the current user logged in.


Check which group current user belongs to



Windows

Following are the steps to check which group current user belongs to:


UNIX/Linux

Execute groups at the command prompt to find out the groups current user belongs to.