Inspect active user sessions and seats under systemd-logind.

Section: Control Groups and Unit Trees

Show user sessions

bash
bash
loginctl list-sessions
Explanation

Inspect active user sessions and seats under systemd-logind.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Control Groups and Unit Trees
Inspect one session
Inspect one logind session in detail.
OpenIn sheetbashsame section
Show cgroup tree
Display control groups and the processes inside them.
OpenIn sheetbashsame section
Top view for cgroups
Show top cgroups by CPU, memory, and I/O load.
OpenIn sheetbashsame section
Show service cgroup path
Reveal the cgroup path tied to a unit.
OpenIn sheetbashsame section
Show service status
Show status, recent logs, and the service main PID.
Start a service
Start a service unit.