Rocky 9.x loginctl
From Notes_Wiki
Home > Rocky Linux or CentOS > Rocky Linux 9.x > System Administration > Rocky 9.x systemd or systemctl > Rocky 9.x loginctl
It is possible for user session to end abruptly and hence not visible in output of:
w
In such cases if they have existing loginctl / systemd session we can see such sessions via:
loginctl list-sessions
We can grep units related to listed session ID via:
systemctl list-units | grep '<session-id>'
It might show abandoned session for the user.
Home > Rocky Linux or CentOS > Rocky Linux 9.x > System Administration > Rocky 9.x systemd or systemctl > Rocky 9.x loginctl