systemctl list-dependencies
linux
Show a unit's dependency tree in systemd. See also: `systemctl list-units`.
More info →Options (2)
-a, --allbooleanInclude all dependency types (not only `Requires=` and `Wants=`)
Example:
systemctl list-dependencies {{unit}} {{[-a|--all]}}-t, --typebooleanLimit 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=`)
systemctl list-dependencies unit [-a|--all]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
systemctl list-dependencies unit --reversePrint output without headers or footers (for scripts)
systemctl list-dependencies unit --no-legendmade by @shridhargupta | data from tldr-pages