commands.sh

systemctl list-dependencies

linux

Show a unit's dependency tree in systemd. See also: `systemctl list-units`.

More info →

Options (2)

-a, --allboolean

Include all dependency types (not only `Requires=` and `Wants=`)

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

Limit the tree to a specific unit type

Example: systemctl list-dependencies {{unit}} {{[-t|--type]}} {{service|socket|target|mount|...}}

Examples (6)

Show the dependency tree of `default.target`

Show the dependency tree of a specific unit

Include all dependency types (not only `Requires=` and `Wants=`)

Limit the tree to a specific unit type

systemctl list-dependencies unit [-t|--type] service|socket|target|mount|...

Reverse the direction to show units that depend on the specified unit

Print output without headers or footers (for scripts)

made by @shridhargupta | data from tldr-pages