mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-11 12:35:43 +02:00
loginctl: add page (#9188)
This commit is contained in:
parent
eab622443e
commit
82bace81d0
1 changed files with 24 additions and 0 deletions
24
pages/linux/loginctl.md
Normal file
24
pages/linux/loginctl.md
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# 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}}`
|
Loading…
Add table
Reference in a new issue