CompTIA Linux+ (XK0-004) — Question 303

A company's httpd server has stopped working and restarting the service does not fix the issue. A junior systems administrator is investigating log files for clues.
Which of the following commands should the administrator execute?

Answer options

Correct answer: A

Explanation

The command 'journalctl -u httpd' is correct because it filters logs specifically for the httpd service, allowing the administrator to see relevant entries. The other options either do not target the correct service or provide less useful information for troubleshooting the service's failure.