On Sun, Mar 30, 2025 at 6:53 PM Timothy M Butterworth <
timothy.m.butterwo...@gmail.com> wrote:

>
>
> On Sun, Mar 30, 2025 at 6:25 PM Charles Curley <
> charlescur...@charlescurley.com> wrote:
>
>> On bookworm who (GNU coreutils 9.1) operates more or less as I have
>> expected it to operate for several decades: it prints current logins.
>> E.g.:
>>
>> charles@hawk:~$ who
>> charles  tty7         2025-03-30 11:31 (:0)
>> charles  pts/35       2025-03-27 20:13 (192.168.100.47)
>> root     pts/36       2025-03-27 21:48 (192.168.100.47)
>> charles@hawk:~$
>>
>> On trixie who (GNU coreutils 9.5) gives me a long list of logins, most
>> of which predate the most recent reboot. "who -u", similarly.
>>
>
> On my Trixie system `who --users` only provides a carriage return and
> prints no information. 'who -a' only prints the last boot time. Seems like
> who is seriously broken.
>
>
>>
>> How do I get only the current logins?
>>
>
Use the w command on Trixie:
tmb@debian-hp:~$ w
04:56:49 up 2 days,  3:26,  2 users,  load average: 0.09, 0.17, 0.17
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
tmb      tty1     -                Sat01    2days  0.07s  0.07s
/usr/bin/startplasma-wayland
tmb               -                Sat01    3:24m  0.00s  2.41s
/usr/lib/systemd/systemd --user



>
>> Also, who on bookworm works fine with no arguments. who on bookworm
>> requires the file to use in order to get any useful output at all,
>> e.g.: "who -Hu /var/log/wtmp". This might be a bug.
>>
>> Finally, I see that bug #798910, "coreutils: /usr/bin/who --lookup does
>> not look up ip addresses in dns", is still outstanding and a bit
>> annoying. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798910
>>
>> Thank you.
>>
>> --
>> Does anybody read signatures any more?
>>
>> https://charlescurley.com
>> https://charlescurley.com/blog/
>>
>>
>
> --
> ⢀⣴⠾⠻⢶⣦⠀
> ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
> ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
> ⠈⠳⣄⠀⠀
>


-- 
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄⠀⠀

Reply via email to