Skip to content

Commit 231242c

Browse files
mady20ManagoracuteenvyFazleArefin
authored
systemctl-list-units: add page (#18468)
Co-authored-by: Managor <[email protected]> Co-authored-by: Lena Pastwa <[email protected]> Co-authored-by: Fazle Arefin <[email protected]>
1 parent 7d0e3f3 commit 231242c

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# systemctl list-units
2+
3+
> List units that systemd currently has in memory.
4+
> See also: `systemctl list-unit-files` for listing installed unit files.
5+
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#list-units%20PATTERN%E2%80%A6>.
6+
7+
- List units which are active, have pending jobs, or have failed:
8+
9+
`systemctl list-units`
10+
11+
- List all units, including inactive ones:
12+
13+
`systemctl list-units {{[-a|--all]}}`
14+
15+
- Filter by unit type:
16+
17+
`systemctl list-units {{[-t|--type]}} {{service|socket|timer|...}}`
18+
19+
- Filter by state:
20+
21+
`systemctl list-units --state {{running|listening|dead|...}}`
22+
23+
- Filter by a name pattern:
24+
25+
`systemctl list-units 'systemd*'`
26+
27+
- Print output directly to `stdout`:
28+
29+
`systemctl list-units --no-pager`
30+
31+
- Print output without headers or footers (for scripts):
32+
33+
`systemctl list-units --no-legend`

0 commit comments

Comments
 (0)