commands.sh

systemctl list-units

linux

List units that systemd currently has in memory. See also: `systemctl list-unit-files`.

More info →

Options (2)

-a, --allboolean

List all units, including inactive ones

Example: systemctl list-units {{[-a|--all]}}
-t, --typeboolean

Filter by unit type

Example: systemctl list-units {{[-t|--type]}} {{service|socket|timer|...}}

Examples (7)

List units which are active, have pending jobs, or have failed

List all units, including inactive ones

Filter by unit type

systemctl list-units [-t|--type] service|socket|timer|...

Filter by state

systemctl list-units --state running|listening|dead|...

Filter by a name pattern

Print output directly to `stdout`

Print output without headers or footers (for scripts)

made by @shridhargupta | data from tldr-pages