Command to list which users are logged in the system. For questions related to how to interpret and use the coreutils who.
Questions tagged [who]
16 questions
14
votes
2 answers
What does '(:0)' in the output of the command 'who' mean?
When I type who in terminal I get this output:
$USER tty2 2017-01-12 12:50 (:1)
What does this smiley (:1) mean ?
Sometimes this smiley looks like (:0.0). What does it mean in this case?
Where is an overview about these different…
dschinn1001
- 3,863
11
votes
1 answer
what is pts/0 , :0 and attributes before it + ,? etc
While reading about Linux, I got a $ who -a, so before trying that I logged into three of my text terminals (tty1,tty2,tty3) respectively,, and then I came back to X-window (Ctrl + Alt +f7),,
then I tried:-
$ who
anupam tty2 2014-09-20…
Anupam
- 1,573
9
votes
1 answer
About the 'who' command & it's Output on '14.04 TrustyTahr'
I have a question that arose in my
mind after upgrading to 14.04 TrustyTahr from 12.04 PrecisePangolin. The
question pertains to the 'who' command, and its output. On previous editions of Ubuntu the output the who command would read what tty was…
oOpSgEo
- 539
8
votes
1 answer
How do I list logged-in users without duplicates?
The who command can be used to find logged-in users, but it prints duplicate values if there are multiple shells running. How do I get a list of the currently logged-in users without duplicates?
Anony
- 803
4
votes
2 answers
How do I find which user executes the script when is used sudo?
What I want is to find the name of the user that runs bash script, when this script is executed by sudo. The only possible way, that I know, is to parse the output of who -m (who am i) in this way:
user@UbuntuServer:~$ cat who.sh…
pa4080
- 30,621
3
votes
1 answer
what the ':S' meaning in 'who' result
when i check who using the server with command who it show :
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root pts/0 182.253.177.249 19:33 0.00s 0.05s 0.00s w
root pts/6 103.24.104.122:S 14:39 8.00s …
whale_steward
- 1,797
2
votes
1 answer
What do 'old' and '?' mean in who commands output?
Here is output of who -u command:
xenoadmin :0 2015-10-12 11:04 ? 2881 (:0)
xenoadmin pts/11 2015-10-12 11:04 old 3744 (:0)
xenoadmin pts/13 2015-10-12 12:39 old 3744 (:0)
xenoadmin pts/21 …
user2436428
- 311
2
votes
1 answer
Why is system asking me to authenticate before shutting down?
I just went to shut down my laptop and it asked me to authenticate before I could reboot. This has never happened before, so I figured maybe a recent update changed something. After a quick search, I found that this happens when multiple users are…
Nathan J.B.
- 2,730
1
vote
3 answers
Multiple users logged in
I'm looking at top and see that there are two users. Using who gives the following:
system boot 2014-12-22 14:15
run-level 2 2014-12-22 14:15
LOGIN tty4 2014-12-22 14:15 996 id=4
LOGIN tty5 …
Abundance
- 227
1
vote
1 answer
Display all the working terminals
I opened 4 terminals but when check them with who or w
me@alpha:~$ w
17:28:19 up 3:09, 1 user, load average: 0.51, 0.35, 0.34
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
me :0 :0 14:20 ?xdm? 3:27 …
Alice
- 1,750
0
votes
0 answers
Ubuntu specifics of who, w, and last: exactly which users are listed?
If I'm on a desktop 22.04 system, and open a terminal, who, w, and last -f /var/run/utmp all report that nobody is logged in.
If I sudo those 3 commands they all report that I'm logged in.
If I ssh to a remote 22.04 system, these 3 commands…
QF0
- 311
0
votes
1 answer
DISPLAY environment variable not showing up in who command
When I enter "who" as below, only tty2 appears, and the local display does not show up:
team@pc1:~$ who
team tty2 2024-04-09 15:06 (tty2)
team pts/0 2024-04-09 15:06 (111.111.111.111)
On other computers, the DISPLAY environment…
Kjyong
- 101
0
votes
1 answer
Echo something to another terminal session?
Is there any way to echo something to another terminal session, obtained from the who command? For example, root user echoes a message to a different user's terminal session, after getting their session from who. Is this possible?
Blue Herring
- 113
0
votes
0 answers
command w and who shows 0 users are logged in
Currently I am using Ubuntu 20.04.3 LTS
Problem which I am having now is that who and w commands who 0 users are logged in system.
mypc:~$ who
mypc:~$ w
22:14:10 up 12 min, 0 users, load average: 0.52, 0.58, 0.59
USER TTY FROM …
game lover
- 135
0
votes
1 answer
How do i get the active user if more are logged in
i want to get info via ssh-session, which user is currently using the machine.
i get the users which are logged in with "w" or "who" but how can i see which one has currently the desktop open to send him a message using yad?
edit: i found a dirty…
sil_el_mot
- 11