mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-01 11:42:28 +00:00
18 lines
358 B
Plaintext
18 lines
358 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/whoami>.
|
|
|
|
- Display currently logged username:
|
|
|
|
`whoami`
|
|
|
|
- Display the username after a change in the user ID:
|
|
|
|
`sudo whoami`
|