Options (4)
-a, --allbooleanPrint all properties of a specific session
Example:
loginctl show-session {{session_id}} {{[-a|--all]}}-p, --propertybooleanPrint a specific property of a user
Example:
loginctl show-user {{username}} {{[-p|--property]}} {{property_name}}-H, --hostbooleanExecute a `loginctl` operation on a remote host
Example:
loginctl list-users {{[-H|--host]}} {{hostname}}-h, --helpbooleanDisplay help
Example:
loginctl {{[-h|--help]}}Examples (7)
Print all current sessions
Print all properties of a specific session
loginctl show-session session_id [-a|--all]Print all properties of a specific user
loginctl show-user usernamePrint a specific property of a user
loginctl show-user username [-p|--property] property_nameLog a user out on all of their sessions
loginctl terminate-user usernameDisplay help
loginctl [-h|--help]made by @shridhargupta | data from tldr-pages