mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-04 05:43:47 +00:00
18 lines
391 B
Plaintext
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`
|