After the rampant indecision of whatis, whereis and which, even more uncertainty is addressed by
Only this time, there’s a better sense of uniformity between the two. But that should also be expected, since both
whoami are part of that magical package called coreutils. Regardless, this will be quick.
who, as you might imagine, shows users logged in at the moment, when they signed in, and from what console.
kmandla@6m47421: ~$ who kmandla tty1 2014-06-28 05:08
who can show a little more information, which is probably a good idea.
kmandla@6m47421: ~$ who -a -H NAME LINE TIME IDLE PID COMMENT EXIT system boot 2014-06-28 05:08 kmandla - tty1 2014-06-28 05:08 08:02 180
In this case, the
-a flag prods
who for the most information available, and the
-H supplies the header line. So you know what you’re looking at, of course. 😉
whoami, in case you thought it impossible, is even simpler. It only does one thing — reminds you who you are — and its only options are
--help … and
--help isn’t hard to figure out.
kmandla@6m47421: ~$ whoami kmandla
As if I didn’t know that.
I debated leaving these tools out, since they’re from the same package and the latter one is hardly worth mentioning. But you never know, perhaps this post will help someone with their identity crisis some day. …