Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the command to display the kernel ring buffer messages.
Linux CLI
sudo [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'ls' or 'cat' instead of 'dmesg'.
Forgetting to use 'sudo' when required.
✗ Incorrect
The command 'dmesg' shows the kernel ring buffer messages.
2fill in blank
mediumComplete the command to show kernel messages with human-readable timestamps.
Linux CLI
sudo dmesg [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-n' which sets the log level.
Using '-c' which clears the buffer after printing.
✗ Incorrect
The '-T' option shows timestamps in human-readable format.
3fill in blank
hardFix the error in the command to continuously watch kernel messages.
Linux CLI
sudo dmesg [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-c' which clears the buffer instead of watching.
Using '-n' which sets log level, not watching.
✗ Incorrect
The '-w' option makes dmesg wait and print new messages as they appear.
4fill in blank
hardFill in the blank to filter kernel messages by log level 3 (errors only).
Linux CLI
sudo dmesg [1] 3
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-n' which sets the console log level but does not filter dmesg output.
Using '-w' which watches messages instead of filtering.
Using '-T' which changes timestamp format.
✗ Incorrect
The '-l' option filters the output to messages of the specified log levels, like 3 for errors.
5fill in blank
hardFill all three blanks to clear the kernel ring buffer and then show messages.
Linux CLI
sudo dmesg [1] && sudo dmesg [2] [3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-n' instead of '-w' for watching.
Not clearing before watching.
✗ Incorrect
Use '-c' to clear the buffer, then '-T' for readable timestamps and '-w' to watch new messages.