File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
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 `
You can’t perform that action at this time.
0 commit comments