b5media.com

Advertise with us

Enjoying this blog? Check out the rest of the Technology Channel Subscribe to this Feed

New Linux User

HOWTO: Remember Who You Are Logged in As?

by Jon on November 13th, 2005

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.

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:




Check Spelling
Activate Spell Check while Typing