System and processes

The loginctl command

Shows and manages user sessions and who is logged in (systemd-logind).

Syntax

loginctl <subcomando>

Copy-ready examples

$ loginctl list-sessionsOpen sessions
$ loginctl show-userUser details

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • It is the modern version of who and w, with more detail.

Related commands

FAQ

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course