This entry is very new in the tldr-pages project, hence translation data is currently unavailable for a while.


whoami

显示有关当前用户的详细信息。 更多信息:https://learn.microsoft.com/windows-server/administration/windows-commands/whoami.

  • 显示当前用户的用户名:

whoami

  • 显示当前用户所属的组:

whoami /groups

  • 显示当前用户的权限:

whoami /priv

  • 显示当前用户的用户主体名称(UPN):

whoami /upn

  • 显示当前用户的登录 id:

whoami /logonid