Bird
0
0

What does the journalctl -b command do in systemd logging?

easy📝 Conceptual Q1 of 15
Linux CLI - System Administration
What does the journalctl -b command do in systemd logging?
AShows logs from the current boot session
BDisplays logs from all boots
CClears the journal logs
DShows logs only for the bootloader
Step-by-Step Solution
Solution:
  1. Step 1: Understand the -b option in journalctl

    The -b flag filters logs to only those from the current boot session.
  2. Step 2: Compare options

    Shows logs from the current boot session matches this behavior. Other options describe different or incorrect actions.
  3. Final Answer:

    Shows logs from the current boot session -> Option A
  4. Quick Check:

    -b = current boot logs [OK]
Quick Trick: Use -b to see logs from current boot only [OK]
Common Mistakes:
  • Confusing -b with showing all boots
  • Thinking -b clears logs
  • Assuming -b filters by service

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes