loginctl
Manage the systemd login manager. More information: <https://www.freedesktop.org/software/systemd/man/loginctl.html>.
Install
- All systems
-
curl cmd.cat/loginctl.sh
- Debian
-
apt-get install systemd
- Ubuntu
-
apt-get install systemd
- Arch Linux
-
pacman -S systemd
- Kali Linux
-
apt-get install systemd
- CentOS
-
yum install systemd
- Fedora
-
dnf install systemd
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install systemd
- Raspbian
-
apt-get install systemd
- Dockerfile
- dockerfile.run/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
© tl;dr; authors and contributors