snippetbashTip
systemctl list-dependencies — Show a unit's dependency tree in systemd. See also: `systemctl list-units`. More information: <https
Viewed 0 times
systemdunitdependencycommandtreeshowclisystemctl list-dependencies
linux
Problem
How to use the
systemctl list-dependencies command: Show a unit's dependency tree in systemd. See also: systemctl list-units. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#list-dependencies%20UNIT%E2%80%A6>.Solution
systemctl list-dependencies — Show a unit's dependency tree in systemd. See also: systemctl list-units. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#list-dependencies%20UNIT%E2%80%A6>.Show the dependency tree of
default.target:systemctl list-dependenciesShow the dependency tree of a specific unit:
systemctl list-dependencies {{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-legendCode Snippets
Show the dependency tree of `default.target`
systemctl list-dependenciesShow the dependency tree of a specific unit
systemctl list-dependencies {{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}} --reverseContext
tldr-pages: linux/systemctl list-dependencies
Revisions (0)
No revisions yet.