LinuxCommandLibrary

systemctl-status

Show runtime status of units

TLDR

Show the status of a systemd unit

$ systemctl status [unit].service
copy
Show the status of failed units
$ systemctl status --failed
copy
List all running services
$ systemctl status
copy
List all units in the system
$ systemctl status -a
copy
List all units of a specific type
$ systemctl status -t [service|timer|socket|target]
copy
List all units with a specific state
$ systemctl status --state [active|inactive|failed]
copy
Show the status of a user unit
$ systemctl status [unit] --user
copy

SYNOPSIS

systemctl [OPTIONS...] status [PATTERN...|PID...]

DESCRIPTION

systemctl status displays the current state of systemd units including services, sockets, targets, and timers. It shows whether units are active, enabled, or have failed, along with recent log entries from the journal.
Without arguments, it shows an overview of system state. With a unit name, it provides detailed status including the main PID, memory usage, control group, and recent log lines.

PARAMETERS

-a, --all

Show all loaded units regardless of state
-t, --type=TYPE
Filter by unit type (service, socket, target, timer, etc.)
--state=STATE
Filter by state (active, inactive, failed, etc.)
--failed
Show only failed units
--user
Query user service manager instead of system
-n, --lines=NUM
Number of journal lines to show
-o, --output=MODE
Journal output mode (short, verbose, json, etc.)
--no-pager
Do not pipe output to pager

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community