mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-20 20:50:49 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
29
tldr/linux/loginctl
Normal file
29
tldr/linux/loginctl
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user