1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-28 15:19:43 +01:00
tldr/pages/linux/loginctl.md
2022-10-21 08:23:53 -03:00

558 B

loginctl

Manage the systemd login manager. More information: https://www.freedesktop.org/software/systemd/man/loginctl.html.

  • Print all current sessions:

loginctl list-sessions

  • Print all properties of a specific session:

loginctl show-session {{session_id}} --all

  • Print all properties of a specific user:

loginctl show-user {{username}}

  • Print a specific property of a user:

loginctl show-user {{username}} --property={{property_name}}

  • Execute a loginctl operation on a remote host:

loginctl list-users -H {{hostname}}