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 wThe 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