mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-17 15:55:43 +02:00
systemctl-status: add page (#17637)
* Create systemctl-status.md --------- Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
parent
cc38dd4b40
commit
0c549e593b
1 changed files with 28 additions and 0 deletions
28
pages/linux/systemctl-status.md
Normal file
28
pages/linux/systemctl-status.md
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# systemctl status
|
||||||
|
|
||||||
|
> Display the status of systemd units.
|
||||||
|
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#status%20PATTERN%E2%80%A6%7CPID%E2%80%A6%5D>.
|
||||||
|
|
||||||
|
- 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:
|
||||||
|
|
||||||
|
`systemctl status --all`
|
||||||
|
|
||||||
|
- List all units of a specific type:
|
||||||
|
|
||||||
|
`systemctl status --type {{service|timer|socket|target|...}}`
|
||||||
|
|
||||||
|
- List all units with a specific state:
|
||||||
|
|
||||||
|
`systemctl status --state {{active|inactive|failed}}`
|
Loading…
Add table
Reference in a new issue