loginctl
Manage the systemd login manager. See also:
lslogins. More information: https://www.freedesktop.org/software/systemd/man/latest/loginctl.html.
- Print all current sessions:
loginctl
- Print all properties of a specific session:
loginctl show-session
- Print all properties of a specific user:
loginctl show-user
- Print a specific property of a user:
loginctl show-user
- Execute a
loginctloperation on a remote host:
loginctl list-users
- Log a user out on all of their sessions:
loginctl terminate-user
- Display help:
loginctl
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
