Skip to content

Commit dd5eac9

Browse files
DagiCheck24arpit1385
authored andcommitted
systemctl list-dependencies: add page (tldr-pages#18828)
1 parent 453fb76 commit dd5eac9

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# systemctl list-dependencies
2+
3+
> Show a unit's dependency tree in systemd.
4+
> See also: `systemctl list-units` to list loaded units.
5+
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#%0A%20%20%20%20%20%20%20%20%20%20%20%20list-dependencies%0A%20%20%20%20%20%20%20%20%20%20%20%20UNIT...%0A%20%20%20%20%20%20%20%20%20%20>.
6+
7+
- Show the dependency tree of `default.target`:
8+
9+
`systemctl list-dependencies`
10+
11+
- Show the dependency tree of a specific unit:
12+
13+
`systemctl list-dependencies {{unit}}`
14+
15+
- Include all dependency types (not only `Requires=` and `Wants=`):
16+
17+
`systemctl list-dependencies {{unit}} {{[-a|--all]}}`
18+
19+
- Limit the tree to a specific unit type:
20+
21+
`systemctl list-dependencies {{unit}} {{[-t|--type]}} {{service|socket|target|mount|...}}`
22+
23+
- Reverse the direction to show units that depend on the specified unit:
24+
25+
`systemctl list-dependencies {{unit}} --reverse`
26+
27+
- Print output without headers or footers (for scripts):
28+
29+
`systemctl list-dependencies {{unit}} --no-legend`

0 commit comments

Comments
 (0)