OS Manuals

/usr/bin/loginctl

The systemd System and Service Manager

From systemd 262.2-r1 (os), captured 2026-11-05 by running loginctl --help (exit 0). permalink

> loginctl [OPTION…] COMMAND …

Send control commands to or query the login manager.

Session Commands:
  [list-sessions]        List sessions
  session-status [ID…]   Show session status
  show-session [ID…]     Show properties of sessions or the manager
  activate [ID]          Activate a session
  lock-session [ID…]     Screen lock one or more sessions
  unlock-session [ID…]   Screen unlock one or more sessions
  lock-sessions          Screen lock all current sessions
  unlock-sessions        Screen unlock all current sessions
  terminate-session ID…  Terminate one or more sessions
  kill-session ID…       Send signal to processes of a session

User Commands:
  list-users             List users
  user-status [USER…]    Show user status
  show-user [USER…]      Show properties of users or the manager
  enable-linger [USER…]  Enable linger state of one or more users
  disable-linger [USER…] Disable linger state of one or more users
  terminate-user USER…   Terminate all sessions of one or more users
  kill-user USER…        Send signal to processes of a user

Seat Commands:
  list-seats             List seats
  seat-status [NAME…]    Show seat status
  show-seat [NAME…]      Show properties of seats or the manager
  attach NAME DEVICE…    Attach one or more devices to a seat
  flush-devices          Flush all device associations
  terminate-seat NAME…   Terminate all sessions on one or more seats

Options:
  -h --help              Show this help
     --version           Show package version
  -H --host=[USER@]HOST  Operate on remote host
  -M --machine=CONTAINER Operate on local container
  -p --property=NAME     Show only properties by this name
  -P NAME                Equivalent to --value --property=NAME
  -a --all               Show all properties, including empty ones
     --value             When showing properties, only print the value
  -l --full              Do not ellipsize output
     --kill-whom=WHOM    Whom to send signal to
  -s --signal=SIGNAL     Which signal to send
  -n --lines=INTEGER     Number of journal entries to show
     --json=FORMAT       Generate JSON output (pretty, short, or off)
  -j                     Equivalent to --json=pretty (on TTY) or --json=short (otherwise)
  -o --output=MODE       Change journal output mode (short, short-precise, short-iso,
                         short-iso-precise, short-full, short-monotonic, short-unix, short-delta,
                         json, json-pretty, json-sse, json-seq, cat, verbose, export, with-unit)
     --no-pager          Do not start a pager
     --no-legend         Do not show headers and footers
     --no-ask-password   Do not prompt for password

See the loginctl(1) man page for details.
Options (17)
OptionDescriptionSource
-h --helpShow this helphelp
--versionShow package versionhelp
-H --host=[USER@]HOSTOperate on remote hosthelp
-p --property=NAMEShow only properties by this namehelp
-P NAMEEquivalent to --value --property=NAMEhelp
-a --allShow all properties, including empty oneshelp
--valueWhen showing properties, only print the valuehelp
-l --fullDo not ellipsize outputhelp
--kill-whom WHOMWhom to send signal tohelp
-s --signal=SIGNALWhich signal to sendhelp
-n --lines=INTEGERNumber of journal entries to showhelp
--json FORMATGenerate JSON output (pretty, short, or off)help
-jEquivalent to --json=pretty (on TTY) or --json=short (otherwise)help
-o --output=MODEChange journal output mode (short, short-precise, short-iso, short-iso-precise, short-full, short-monotonic, short-unix, short-delta, json, json-pretty, json-sse, json-seq, cat, verbose, export,…help
--no-pagerDo not start a pagerhelp
--no-legendDo not show headers and footershelp
--no-ask-passwordDo not prompt for passwordhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.