|
Linux Topic Search
|
|
If you want to know which users are currently logged in to your Linux system, which console they're using, and the date and time they logged in, issue the who command. You'll see output something like this:
who
root tty1 Nov 2 17:57
hermie tty3 Nov 2 18:43
sigmund tty2 Nov 2 18:08
In the output shown here, the term tty stands for teletype. In the olden days of computing, a terminal was just a keyboard with an attached printer, so you read everything off the teletype.
If you've logged in with multiple virtual consoles and changed your identity on any of them, you may have some trouble figuring out who you are--or at least what user is logged in to the console you're using. If you find yourself in such an identity crisis, try this variant of the who command:
who am i
For more information on the who command, see the who manual.
Previous Lesson: Switching Users
Next Lesson: Date and Time
|
![]() |
|
| <Send This Link to a Friend> <Bookmark This Page> | ||