Files
cheatsheet-tldr/tldr/whoami
2025-01-19 00:18:40 +00:00

18 lines
391 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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`