A system administrator is troubleshooting a web server on a modern Linux distribution. After connecting to the server via SSH, the administrator checks the status of the web server daemon with the command systemctl status httpd and receives the following output line:
Active: inactive (dead)
To restore web services for users immediately, which of the following commands must the administrator execute?
The correct command is sudo systemctl start httpd. On Linux distributions that use the systemd init system, the systemctl utility is the standard tool for managing services. The start verb is used to activate a service immediately for the current session. Since managing system-wide services requires elevated privileges, the command must be prefixed with sudo.
sudo systemctl enable httpd is incorrect because the enable command configures the service to start automatically at the next system boot; it does not start the service in the current session.
sudo service httpd begin is incorrect. While service is a legacy command that often acts as a wrapper for systemctl on modern systems, begin is not a valid verb for managing services. The standard verb is start.
sudo init httpd start is syntactically incorrect. The init process is the first process (PID 1) started by the kernel, but it is not directly used with this syntax to manage individual services.