snippetbashTip
systemctl status — Display the status of systemd units. More information: <https://www.freedesktop.org/software/systemd
Viewed 0 times
thesystemdcommandsystemctl statusstatuscliunitsdisplay
linux
Problem
How to use the
systemctl status command: 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>.Solution
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 --failedList all running services:
systemctl statusList all units in the system:
systemctl status {{[-a|--all]}}List all units of a specific type:
systemctl status {{[-t|--type]}} {{service|timer|socket|target|...}}List all units with a specific state:
systemctl status --state {{active|inactive|failed}}Show the status of a user unit:
systemctl status {{unit}} --userCode Snippets
Show the status of a systemd unit
systemctl status {{unit}}.{{service|timer|socket|target|...}}Show the status of failed units
systemctl status --failedList all running services
systemctl statusList all units in the system
systemctl status {{[-a|--all]}}List all units of a specific type
systemctl status {{[-t|--type]}} {{service|timer|socket|target|...}}Context
tldr-pages: linux/systemctl status
Revisions (0)
No revisions yet.