diff options
Diffstat (limited to 'nixos/doc/manual/administration/user-sessions.xml')
-rw-r--r-- | nixos/doc/manual/administration/user-sessions.xml | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/nixos/doc/manual/administration/user-sessions.xml b/nixos/doc/manual/administration/user-sessions.xml index 80daf6bdbff0..c7969f4f0d63 100644 --- a/nixos/doc/manual/administration/user-sessions.xml +++ b/nixos/doc/manual/administration/user-sessions.xml @@ -5,10 +5,7 @@ xml:id="sec-user-sessions"> <title>User Sessions</title> <para> - Systemd keeps track of all users who are logged into the system (e.g. on a - virtual console or remotely via SSH). The command <command>loginctl</command> - allows querying and manipulating user sessions. For instance, to list all - user sessions: + Systemd keeps track of all users who are logged into the system (e.g. on a virtual console or remotely via SSH). The command <command>loginctl</command> allows querying and manipulating user sessions. For instance, to list all user sessions: <screen> <prompt>$ </prompt>loginctl SESSION UID USER SEAT @@ -16,10 +13,7 @@ c3 0 root seat0 c4 500 alice </screen> - This shows that two users are logged in locally, while another is logged in - remotely. (“Seats” are essentially the combinations of displays and input - devices attached to the system; usually, there is only one seat.) To get - information about a session: + This shows that two users are logged in locally, while another is logged in remotely. (“Seats” are essentially the combinations of displays and input devices attached to the system; usually, there is only one seat.) To get information about a session: <screen> <prompt>$ </prompt>loginctl session-status c3 c3 - root (0) @@ -34,10 +28,7 @@ c3 - root (0) ├─10339 -bash └─10355 w3m nixos.org </screen> - This shows that the user is logged in on virtual console 3. It also lists the - processes belonging to this session. Since systemd keeps track of this, you - can terminate a session in a way that ensures that all the session’s - processes are gone: + This shows that the user is logged in on virtual console 3. It also lists the processes belonging to this session. Since systemd keeps track of this, you can terminate a session in a way that ensures that all the session’s processes are gone: <screen> # loginctl terminate-session c3 </screen> |