HOWTO: Remember Who You Are Logged in As?
I know this sounds like a stupid topic, but I use it all the time. The problem isn’t so much remembering which account you used to log into your box, but remembering which account you may have su’d to. As well, if you haven’t customized your command prompt at all, then it’s likely that you can just look at it to be reminded of ‘who’ you are right now. But, if not there is a handy command for just this type of thing.
To find out which account you are operating under right now, open a terminal window and type:
whoami
One of the few *nix commands that is actually intuitive :)
There is another command that presents the same information. It is:
id -un
Not so intuitive.
Related Stories
POSTED IN: General
0 opinions for HOWTO: Remember Who You Are Logged in As?
No one has left a comment yet. You know what this means, right? You could be first!
Have an opinion? Leave a comment: