CompTIA
XK0-005 · Question #543
After several services crash, an administrator needs to find an explanation for why the services crashed. Which of the following commands will display all of the systemd service logs?
The correct answer is C. journalctl. queries the systemd journal, showing the logs for all services managed by systemd. The other commands either show only kernel messages (dmesg), login records (lastlog), or unfiltered text files (cat /var/log/*).
Troubleshooting
Question
After several services crash, an administrator needs to find an explanation for why the services crashed. Which of the following commands will display all of the systemd service logs?
Options
- Alastlog
- Bdmesg
- Cjournalctl
- Dcat /var/log/*
How the community answered
(32 responses)- A3% (1)
- C94% (30)
- D3% (1)
Explanation
queries the systemd journal, showing the logs for all services managed by systemd. The other commands either show only kernel messages (dmesg), login records (lastlog), or unfiltered text files (cat /var/log/*).
Topics
#systemd#Logging#Troubleshooting#journalctl
Community Discussion
No community discussion yet for this question.