I am writing a program in Bash that needs to get the user\'s username.
I have heard of a thing called whoami, but I have no idea what it does or how to use it.
W
Two commands:
id prints the user id along with the groups. Format: uid=usernumber(username) ...
id
uid=usernumber(username) ...
whoami gives the current user name
whoami