Services and System Control

loginctl

Inspects logins, sessions, and seats.

loginctl queries systemd-logind for user sessions, seats, and login state.

Syntax
loginctl [command]

Arguments explained

  • Options adjust output or behavior.
  • Arguments name the files, services, hosts, or values the command should work with.

Common examples

List sessions
loginctl list-sessions

Shows active login sessions.

Inspect one session
loginctl session-status 2

Displays details for session 2.

loginctl Command
FieldDetails
Commandloginctl
CategoryServices and System Control
Primary useInspects logins, sessions, and seats.
Syntaxloginctl [command]