Problem Statement
Which systemctl command checks the current status of a service?
Explanation
systemctl status displays whether a service is active, inactive, or failed.
It also shows logs from the systemd journal, helping quickly diagnose service issues.
Code Solution
SolutionRead Only
sudo systemctl status nginx
Practice Sets
This question appears in the following practice sets: