Skip to content

Commit 87ccc10

Browse files
mady20dmmqzSadeeed
authored
systemctl-list-unit-files: add page (#18476)
Co-authored-by: Dylan <[email protected]> Co-authored-by: Sadeed <[email protected]>
1 parent ed5e917 commit 87ccc10

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-unit-files
2+
3+
> List installed unit files and their enablement states.
4+
> See also: `systemctl list-units` for listing units currently loaded in memory.
5+
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#list-unit-files%20PATTERN%E2%80%A6>.
6+
7+
- List installed unit files and their states:
8+
9+
`systemctl list-unit-files`
10+
11+
- Filter by state:
12+
13+
`systemctl list-unit-files --state {{enabled|disabled|static|...}}`
14+
15+
- Filter by unit type:
16+
17+
`systemctl list-unit-files {{[-t|--type]}} {{service|socket|timer|...}}`
18+
19+
- Filter by a name pattern:
20+
21+
`systemctl list-unit-files '{{sshd*}}'`
22+
23+
- Print output directly to `stdout`:
24+
25+
`systemctl list-unit-files --no-pager`
26+
27+
- Print output without headers or footers:
28+
29+
`systemctl list-unit-files --no-legend`

0 commit comments

Comments
 (0)