Topic 101: System Architecture1 / 5
After an unclean start, a hosting operator wants to read the kernel ring buffer but see only the error and warning messages in it, leaving the informational noise out. Which dmesg invocation does that?
CorrectIncorrect
Alex
Kernel messages carry two independent labels: a facility, saying which part of the system produced them, and a level, saying how severe they are. A reader of the ring buffer can filter on either, and confusing the two is the classic mistake, because both options take a comma-separated list and look alike on the command line. Levels also form an ordered scale, so the filter accepts a plus suffix to mean a level and everything above it, which is usually what an operator hunting failures actually wants. Filtering is a display-time decision and does not alter the buffer, unlike the options that clear it or redirect messages to the console. A separate group of options controls what the console prints rather than what the command prints, and those options deliberately suppress the normal output. Reading the option list with that split in mind — filter, display, or control — makes the tool much easier to use under pressure.
Sourcelearning.lpi.org
Follow-up answers are available in the app. Create a free account — no credit card required.
Question 1 of 5
Create a free account