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:
- Right click on "My Computer", go to "Manage"
- Click on "local users and groups" folder
- Right click on current user's name, go to properties, click on "Members of" tab. This tab will list all the groups which the current user belongs to.
UNIX/Linux
Execute groups
at the command prompt to find out the groups current user belongs to.