dmesg do?print or control the kernel ring buffer (boot and driver messages).
▸ Explain your own dmesg command →$ dmesg
$ dmesg -H
$ dmesg -w
$ dmesg -l err,warn
| -H | human-readable output with colors and relative time |
| -w | wait and keep printing new messages as they arrive (follow) |
| -T | show human-readable timestamps |
| -c | clear the ring buffer after printing its contents |
| -l | restrict output to these log levels (e.g. err,warn) |
| -f | restrict output to these facilities (e.g. kern) |
| -k | print kernel messages |
| -u | print userspace messages |
| -x | show the facility and level of each line as text |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.