Learning Who Else is Logged in With who

If you’re not interested in all the gory details you get about users when you finger them,you can instead use who to get just the basics. With who you get just the users’ names, connection information, login times, and host names, as shown in Code Listing 7.10.

To snoop with who:

  • who

    At the shell prompt, type who. You’ll get user information like that shown in Code Listing 7.10. Optionally, you could pipe the output of who to more, as in who | more, which would give you a long list of results one screen at a time.

✓ Tips

  • If you’re a system administrator or use several different userids, you might occasionally need to use a special case of who,called whoami. Just type whoami at the shell prompt, and it’ll ...

Get Unix Third Edition: Visual Quickstart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.