mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-06 23:46:00 +02:00
whoami: clarify description and add sudo example (#2419)
This commit is contained in:
parent
63e8a3b7c4
commit
1fb034577d
1 changed files with 6 additions and 2 deletions
|
@ -1,7 +1,11 @@
|
||||||
# whoami
|
# whoami
|
||||||
|
|
||||||
> Show the username of the current user.
|
> Print the username associated with the current effective user ID.
|
||||||
|
|
||||||
- Display currently logged user name:
|
- Display currently logged username:
|
||||||
|
|
||||||
`whoami`
|
`whoami`
|
||||||
|
|
||||||
|
- Display the username after a change in the user ID:
|
||||||
|
|
||||||
|
`sudo whoami`
|
||||||
|
|
Loading…
Add table
Reference in a new issue