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

learn more… | top users | synonyms

3
votes
2answers
66 views

I want to reboot the system once a search had been done to see that no-one is logged in

I'm working on a user menu so that when a user logs in all they get is this menu; on this menu is a selection of reboot option. I want one of the options to be reboot the system if no one is logged ...
2
votes
1answer
28 views

Scripting: Counting users logged in onto the system

I need help with the following script. #!/bin/bash #Solution script1 who date +"Today %d %B, there are $# users logged in onto the system" In the background user1 has looged in onto tty2 and 3 and ...
2
votes
2answers
281 views

Difference between who and whoami commands

The man page description of who command is who - show who is logged on But there exists a similar command whoami. The man page description of whoami is whoami - print effective userid Can anyone ...
1
vote
1answer
154 views

Identify the outgoing connection (ssh) with the who command

After a ssh connection, if I run the who command on the server : I have this response : olivia@olivia-pc:~$ who olivia :0 2014-09-08 11:40 (:0) olivia pts/0 2014-09-08 11:43 ...
3
votes
2answers
155 views

Is there a way to prevent a non-terminal-attached process from executing 'who' inside my .envfile?

I made some modifications to the /home/user/.envfile so the PS1 prompt would show date/time as well as the pwd etc. The modification is: # `who am i` is used to obtain the name of the original user ...
0
votes
1answer
93 views

What is the :0 terminal in the who command's output? [duplicate]

When I type who in my console terminal, I get the following output: hubert :0 2014-05-16 21:40 (:0) hubert pts/0 2014-05-16 21:46 (:0) From info who I know that both :0 and ...
21
votes
2answers
1k views

Is `who mom likes` a real linux command?

I stumbled across a blog that mentioned the following command. who mom likes It appears to be equivalent to who am i The author warns to never enter the following into the command line (I ...
3
votes
3answers
390 views

Print unique of who command

I want to show the online users using the who command but I want to have a unique output and not show any duplicates. I piped the output into awk but I am not very familiar with that, is this the ...
2
votes
1answer
289 views

'who --message' -> which message?

I found the following in man who: -T, -w, --mesg add user's message status as +, - or ? --message same as -T --writablesame as -T So looked up info who and found -w -T --mesg --message ...
1
vote
1answer
164 views

who -b date format varies strangely

I run who -b to get the date of the last reboot. It returns 2013-10-29 14:55. Now ran by a daemon (I am sending this date to a server) it returns Oct 29 14:55. But some other times (before last reboot ...
0
votes
1answer
47 views

How many XUSER's

I'm working on a script an I need to show how many people are logged into XServer. It was suggested that I look at the last part of the who command (N:N): user1 tty7 2013-10-10 12:14 (:0) ...
2
votes
2answers
543 views

What does the `who` command result `root :0` mean?

The return value of command who will always include root :0 in X Window pts. I guess it actually means the GNOME login. Am I right? Another question is where to get this knowledge, as I don't see it ...