2025-12-16 10:20:31 -07:00
|
|
|
# systemctl status
|
|
|
|
|
|
|
|
|
|
> Display the status of systemd units.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#status%20PATTERN%E2%80%A6%7CPID%E2%80%A6%5D>.
|
2025-12-16 10:20:31 -07:00
|
|
|
|
|
|
|
|
- Show the status of a systemd unit:
|
|
|
|
|
|
|
|
|
|
`systemctl status {{unit}}.{{service|timer|socket|target|...}}`
|
|
|
|
|
|
|
|
|
|
- Show the status of failed units:
|
|
|
|
|
|
|
|
|
|
`systemctl status --failed`
|
|
|
|
|
|
|
|
|
|
- List all running services:
|
|
|
|
|
|
|
|
|
|
`systemctl status`
|
|
|
|
|
|
|
|
|
|
- List all units in the system:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`systemctl status {{[-a|--all]}}`
|
2025-12-16 10:20:31 -07:00
|
|
|
|
|
|
|
|
- List all units of a specific type:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`systemctl status {{[-t|--type]}} {{service|timer|socket|target|...}}`
|
2025-12-16 10:20:31 -07:00
|
|
|
|
|
|
|
|
- List all units with a specific state:
|
|
|
|
|
|
|
|
|
|
`systemctl status --state {{active|inactive|failed}}`
|
|
|
|
|
|
|
|
|
|
- Show the status of a user unit:
|
|
|
|
|
|
|
|
|
|
`systemctl status {{unit}} --user`
|