Hamilton LaboratoriesHamilton C shell 2012User guideExternal utilities


Oregon Coast

Previous | Next

        Print the Current Domain and User Names

Usage:  whoami [-dupgh-]

   whoami prints out the current domain and user names and,
   optionally, the groups to which the user belongs.  By
   default, it prints it in the form <domain>\<user>.  Under
   Windows 9x, the domain is actually the current machine name.
   Groups exist only under Windows NT, not Windows 9x.


   -d         Print only the domain name.
   -u         Print only the user name.
   -p         Also print the user's primary group.  (NT only.)
   -g         Also print a list of all the groups to which the user
              belongs.  (NT only.)
   -h         Help
   --         End of options

Previous | Next