Bird
0
0

What is the primary purpose of the journalctl command in Linux?

easy📝 Conceptual Q11 of 15
Linux CLI - System Administration
What is the primary purpose of the journalctl command in Linux?
ATo edit configuration files for systemd services
BTo start and stop systemd services
CTo view system and service logs managed by systemd
DTo display disk usage statistics
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of journalctl

    The journalctl command is used to access logs collected by systemd's journal service.
  2. Step 2: Compare options with command purpose

    Editing configuration files, starting/stopping services, and displaying disk usage are handled by other commands, unrelated to viewing logs.
  3. Final Answer:

    To view system and service logs managed by systemd -> Option C
  4. Quick Check:

    journalctl = view logs [OK]
Quick Trick: Remember: journalctl = journal + control = view logs [OK]
Common Mistakes:
  • Confusing journalctl with systemctl for service control
  • Thinking journalctl edits files
  • Assuming journalctl shows disk info

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes