From 82bace81d0e4a6429df015c5c992b44c9632ee13 Mon Sep 17 00:00:00 2001 From: NikhilSS Date: Fri, 21 Oct 2022 16:53:53 +0530 Subject: [PATCH] loginctl: add page (#9188) --- pages/linux/loginctl.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/linux/loginctl.md diff --git a/pages/linux/loginctl.md b/pages/linux/loginctl.md new file mode 100644 index 000000000..445ba7d50 --- /dev/null +++ b/pages/linux/loginctl.md @@ -0,0 +1,24 @@ +# loginctl + +> Manage the systemd login manager. +> More information: . + +- 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}}`