Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

- - - - -

List all logged-in users

  • Please log in to reply
No replies to this topic

#1 Al1000


  • Global Moderator
  • 8,037 posts
  • Gender:Male
  • Location:Scotland
  • Local time:10:13 PM

Posted 11 February 2017 - 07:03 PM

List all logged-in users

To list all users that are logged into your system, open a terminal and type w. You should see something like this:
al@laptop:~$ w
 23:49:39 up 26 min,  2 users,  load average: 0.43, 0.40, 0.39
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
al       pts/0    :0               23:24   25:25   0.00s  2.65s kded5 [kdeinit5]      
al       pts/1    :0               23:49    3.00s  0.03s  0.01s w
The initial instance of your username is because you are logged into a session on your computer, and the final instance occurs because you opened a terminal. If you leave the terminal open, then open another terminal window then type w again, you will see an additional instance of your username listed as logged in, etc.

Some older distros with KDE desktops, will show yet another instance of your username as logged in. They will show separate instances for init and kde processes.

To list all users logged into your system without showing so much detail, type who in a terminal, and you should see something like this:
al@laptop:~$ who
al       pts/0        2017-02-11 23:24 (:0)
al       pts/1        2017-02-11 23:49 (:0)

Edited by Al1000, 04 August 2017 - 06:15 AM.
split from deleted Tips and Tricks topic

BC AdBot (Login to Remove)


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users