Bird
0
0

Which option with journalctl shows logs in real-time as they are written?

easy📝 Conceptual Q2 of 15
Linux CLI - System Administration
Which option with journalctl shows logs in real-time as they are written?
A-f
B-r
C-u
D-n
Step-by-Step Solution
Solution:
  1. Step 1: Identify the option for live log streaming

    The -f option follows the journal, showing new entries as they appear.
  2. Step 2: Verify other options

    -n shows last lines, -u filters by unit, -r reverses output order.
  3. Final Answer:

    Use -f to follow logs live -> Option A
  4. Quick Check:

    -f = follow logs live [OK]
Quick Trick: Use -f to watch logs live like tail -f [OK]
Common Mistakes:
  • Using -n to follow logs
  • Confusing -u with live follow
  • Thinking -r streams logs

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes