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