1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 12:06:12 +02:00
tldr/pages/common/whoami.md
2021-03-30 10:42:22 -03:00

12 lines
298 B
Markdown

# whoami
> Print the username associated with the current effective user ID.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/whoami-invocation.html>.
- Display currently logged username:
`whoami`
- Display the username after a change in the user ID:
`sudo whoami`