Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   loginctl    ( 1 )

управляйте менеджером входа в систему (Control the systemd login manager)

  Name  |  Synopsis  |  Description  |  Commands  |  Options  |  Exit  |    Examples    |  Environment  |  See also  |

Примеры (Examples)

Example 1. Querying user status

$ loginctl user-status fatima (1005) Since: Sat 2016-04-09 14:23:31 EDT; 54min ago State: active Sessions: 5 *3 Unit: user-1005.slice ├─user@1005.service ... ├─session-3.scope ... └─session-5.scope ├─3473 login -- fatima └─3515 -zsh

Apr 09 14:40:30 laptop login[2325]: pam_unix(login:session): session opened for user fatima by LOGIN(uid=0) Apr 09 14:40:30 laptop login[2325]: LOGIN ON tty3 BY fatima

There are two sessions, 3 and 5. Session 3 is a graphical session, marked with a star. The tree of processing including the two corresponding scope units and the user manager unit are shown.