On 2023-08-03 23:53, Thorsten Kukuk wrote:
And yes, "who /var/log/wtmp" will not work with this, too. But is this
really a required or usefull use case?
/usr/bin/last can give you the same output.

Sure, but some people use "who" for that.[1][2][3] This is partly because "who" predates "last".

How does "last" emulate /var/log/wtmp using systemd?

Also, what about /var/log/btmp? That is, what is the systemd substitute for "who /var/log/btmp" or "last -f /var/log/btmp"?

[1]: https://linuxhandbook.com/who-command/
[2]: https://linuxtldr.com/who-command/
[3]: https://kamotora.net/system/linux/check-btmp-wtmp-utmp/



Reply via email to