Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Who, whoami, and "who am i"

I can understand the commands who and whoami, but what exactly happens when I type:
who am i


and

who am


I am on Ubuntu, nothing happens after them!

Why doesn't Linux / UNIX reply with an error message (something on the line of "unknown arguments" for who), or just reply with the output of who?
by

1 Answer

Kajalsi45d
If you run

xterm -ls

to open a terminal with a login shell, you should find that whoami and who am i work fine. The same goes for a remote login using e.g. SSH.

Login / Signup to Answer the Question.