LPIC-1 Exam 101 v5 (Linux Administrator) — Question 64
When is the content of the kernel ring buffer reset? (Choose two.)
Answer options
- A. When the ring buffer is explicitly reset using the command dmesg --clear
- B. When the ring buffer is read using dmesg without any additional parameters
- C. When a configurable amount of time, 15 minutes by default, has passed
- D. When the kernel loads a previously unloaded kernel module
- E. When the system is shut down or rebooted
Correct answer: A, E
Explanation
The kernel ring buffer is cleared when the command dmesg --clear is used, which directly resets the buffer. Additionally, the buffer is also reset upon system shutdown or reboot, as this clears the memory. The other options do not result in the clearing of the buffer; reading it or loading modules does not affect its content.