Bird
0
0

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

easy📝 Conceptual Q11 of 15
Linux CLI - System Administration
What is the primary purpose of the dmesg command in Linux?
ATo display kernel messages and system events
BTo list all running processes
CTo show disk usage statistics
DTo edit system configuration files
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of dmesg

    The dmesg command reads the kernel ring buffer, which contains messages about system events and hardware status.
  2. Step 2: Compare with other options

    Options A, B, and C relate to file editing, process listing, and disk usage, which are unrelated to kernel messages.
  3. Final Answer:

    To display kernel messages and system events -> Option A
  4. Quick Check:

    Kernel messages = display with dmesg [OK]
Quick Trick: dmesg always shows kernel logs, not processes or files [OK]
Common Mistakes:
  • Confusing dmesg with ps or top commands
  • Thinking dmesg edits files
  • Assuming dmesg shows disk info

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes