whoami

whoami prints the username of the current user when invoked

$ whoami
mmdarden

Example Command

whoami returns root if you are the system administrator

$ whoami
root

#### whoami has been obsoleted by the id command

$ id -un
mmdarden

id Command

You can read more about the id command here