tldr/pages/common/whoami.md

13 lines
265 B
Markdown

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