Rocky 9.x loginctl

From Notes_Wiki
Revision as of 05:06, 10 April 2024 by Saurabh (talk | contribs) (Created page with "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: <pre> w </pre> In such cases if they have existing loginctl / systemd session we can see such sessions via: <pre> loginctl list-sessions </pre> We can grep units related to listed session ID via: <...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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