Skip to main content

Questions tagged [who]

Command to list which users are logged in the system. For questions related to how to interpret and use the coreutils who.

Filter by
Sorted by
Tagged with
14 votes
2 answers
3k views

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 ...
dschinn1001's user avatar
  • 3,849
11 votes
1 answer
9k views

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 ...
lazarus's user avatar
  • 1,563
9 votes
1 answer
437 views

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 ...
oOpSgEo's user avatar
  • 539
7 votes
1 answer
2k views

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's user avatar
  • 783
3 votes
2 answers
7k views

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: ...
pa4080's user avatar
  • 30.1k
3 votes
1 answer
261 views

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 ...
whale_steward's user avatar
2 votes
1 answer
222 views

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 ...
user2436428's user avatar
2 votes
1 answer
139 views

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, ...
Nathan J.B.'s user avatar
  • 2,660
1 vote
3 answers
2k views

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-...
Abundance's user avatar
  • 227
1 vote
1 answer
225 views

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 ...
Alice's user avatar
  • 1,720
0 votes
1 answer
928 views

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 ...
Blue Herring's user avatar
0 votes
1 answer
88 views

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 ...
sil_el_mot's user avatar
0 votes
0 answers
24 views

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 ...
QF0's user avatar
  • 253
0 votes
1 answer
37 views

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....
Kjyong's user avatar
  • 101
0 votes
0 answers
24 views

command w and who shows 0 users are logged in [duplicate]

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....
game lover's user avatar
-5 votes
1 answer
68 views

display 1st and 10th line of user login [duplicate]

how to Redirect the list of all the users and their login date/time that are currently logged in into “data.txt” and display 1st and 10th line from data.txt
prachi's user avatar
  • 3