Beginner Package: systemd

systemctl status

Show the current state of a service or the system.

Syntax

systemctl status [unit]

Description

systemctl status reports whether a unit is running, its recent log output, process ID and how it was started, making it the first command to run when a service is misbehaving.

Examples

systemctl status nginx
Show the status and recent logs of a single service
systemctl status
Show an overview of overall system state
systemctl --failed
List only units that have failed to start
systemd-based distributions only (most modern distros; Alpine/OpenRC is the main exception).

Applies to

Ubuntu Debian Linux Mint RHEL CentOS / Rocky / AlmaLinux Fedora Arch Linux openSUSE