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 command.
61 questions
-2
votes
1
answer
58
views
Output who -l some columns unknown
Today another day of studying: who turn
I type who -l
who -l
UUCP . Feb 22 15:57 0:14 488
LOGIN console Feb 22 15:57 0:07 494
zsmon . Feb 22 15:57 ...
0
votes
2
answers
206
views
Display consistently the date and time output for the who command
If I connect via SSH to my Debian 12 Server from another Linux Server and run the who -m command, it displays the following:
test-user pts/1 2024-01-24 11:13 (xx.xx.xx.xx)
But, if I connect ...
2
votes
1
answer
813
views
My username mentioned twice in who command
I noticed by chance today that I had 2 users running on my Linux system.
I do not know much about Linux users but I ended up running the “w” command that gave the following output when Firefox is ...
0
votes
0
answers
70
views
`w` not working on Buildroot
I'm working remotely on an embedded device running Buildroot. My colleagues are working on this same device, so it's important to know who else is logged in.
For a previous project (running on a non-...
0
votes
1
answer
590
views
"Other users are logged in" how does the system know? Where is the information leaking?
(Example screenshot taken from https://askubuntu.com/questions/1343872/ubuntu-shows-other-users-are-logged-in-whenever-i-shut-down-even-though-i-am-the)
But my question is: how does the system know ...
3
votes
1
answer
189
views
Change date format for who in FreeBSD
Unlike Linuxae which outputs 2022-11-07 16:23, FreeBSD who command outputs Nov 7 16:23. How can I change the date format in the output of who either globally or just for the duration of the command?
...
0
votes
1
answer
44
views
who command: What do the - + ? symbols represent with the -T option?
Through the man who appears the following for the -T option
-T, -w, --mesg
add user's message status as +, - or ?
According with some tutorials, if is executed who -T should appears these ...
0
votes
0
answers
153
views
who command: What does the comment header exactly represent?
When either the who -a -H or who -u -H commands are executed - and having many users logged through tty and ssh - the command works as expected.
I did realise the COMMENT header appears but always ...
0
votes
1
answer
182
views
How to disable a malicious kick off service
I'm using a Linux server with my whole team together. We all have sudo permission.
As we know, we can kick someone off easily: who -u will list all of ssh logins with their PIDs and then kill -9 ...
0
votes
0
answers
38
views
Why "who" in Ubuntu from Microsoft Store in Windows 10 doesn't work?
I have a question, why when I write "who" in the Ubuntu terminal from Microsoft Store in Windows 10 show nothing instead of showing username, date and time.
mark@DESKTOP-UD9H17S:~$ who
and ...
0
votes
1
answer
594
views
Command to Get Calling Server's Name
A shell script running on a batch server will ssh (ssh -n root@prodfs1) to the file server to run another shell script, but we'd like to run subsequent shell scripts back on the original batch server. ...
0
votes
0
answers
99
views
who -b shows different output format on Mac and Linux
I am trying to find a way to get output format of who -b same as in linux but on OSX i get format as below.
MAC
% locale | grep LC_TIME
LC_TIME="en_US.UTF-8"
% who -b
reboot ~ Nov ...
3
votes
1
answer
7k
views
How to view all currently logged in users on Alpine Linux?
How to view all currently logged in users on Alpine Linux? It doesn't have who by default apk add who doesn't find any packages. Is there another package for Alpine that contains who? Or does it use ...
0
votes
3
answers
258
views
Is there a way to script a check to see how long someone has been logged into a server?
I'm an absolute scripting novice but I've been asked to create a script that checks how long a user has been logged in to a Linux server and if it's longer than, let's say, 5 hours, it would need an ...
0
votes
0
answers
250
views
How to interpret the output of the "who" cmd? - wrong date, non-existing user
On a SLES11, I can see the following output:
$ who | grep -i FOOBARUSER
FOOBARUSER ::ffff:127.0.0.1:3 Mar 2 09:52 (::ffff:127.0.0.1::ffff:127.0.0.1:3)
FOOBARUSER ::ffff:127.0.0.1:3 Mar 2 09:52 (:...