systemctl list-units
linux
List units that systemd currently has in memory. See also: `systemctl list-unit-files`.
More info →Options (2)
-a, --allbooleanList all units, including inactive ones
Example:
systemctl list-units {{[-a|--all]}}-t, --typebooleanFilter 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
systemctl list-units [-a|--all]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
systemctl list-units 'systemd*'Print output directly to `stdout`
systemctl list-units --no-pagerPrint output without headers or footers (for scripts)
systemctl list-units --no-legendmade by @shridhargupta | data from tldr-pages