tldr/pages/common/whoami.md
2018-10-09 21:53:43 +05:30

196 B

whoami

Print the username associated with the current effective user ID.

  • Display currently logged username:

whoami

  • Display the username after a change in the user ID:

sudo whoami