tldr/pages/common/whoami.md

12 lines
196 B
Markdown
Raw Normal View History

2015-12-23 12:45:11 +00:00
# whoami
> Print the username associated with the current effective user ID.
2015-12-23 12:45:11 +00:00
- Display currently logged username:
2015-12-23 12:45:11 +00:00
`whoami`
- Display the username after a change in the user ID:
`sudo whoami`