Quickly read the kernel ring buffer to diagnose boot, hardware and driver messages. 07.03.2026 | reading time: 2 min When the kernel talks, it writes to the ring buffer; `dmesg` is the simple tool that lets the administrator listen, fast and locally. See it in action Try this on a shell to inspect the last kernel messages and follow new events: ```bash $ sudo dmesg | tail -n 10 [ 197.223981] usb 1-1: new high-speed USB device number 4 using xhci_hcd [ 197.224123] cdc_ether 1-1:1.0 eth0: register 'cdc_ether' at usb-0000:00:14.0-1, CDC Ethernet Device, aa:bb:cc:dd:ee:ff [ 197.225007] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready ``` To follow messages as they arrive use: ```bash $ sudo dmesg -w ``` This prints new kernel messages in real time. Useful knobs to know Use `dmesg -T` to see human timestamps (note: they may be skewed compared to system clock), `dmesg --level=err,warn` to limit output by severity, and `dmesg -k` on some systems to restrict output to kernel-only messages; combine with `grep` to hunt for "usb" or driver names; remember that modern systems may require sudo because of kernel.dmesg_restrict. When dmesg is not enough Systemd and persistent logs often contain richer context; read `/var/log/kern.log` or use `journalctl -k` to search historical kernel messages, and correlate `dmesg` output with udev events and driver logs for a full diagnosis. Next steps for diagnostics After spotting a kernel error, capture the full buffer to a file with `sudo dmesg > /tmp/dmesg.log`, gather related syslog/journal output, and reproduce the event while running `dmesg -w` to collect timestamps and context for bug reports or support tickets. Final thought `dmesg` is the first place to look when hardware, drivers or boot problems appear; learn to read its messages and combine them with system logs to solve issues faster, and consider formalizing that knowledge with certifications such as CompTIA Linux+ or LPIC-1 using intensive exam preparation at bitsandbytes.academy. Join Bits & Bytes Academy First class LINUX exam preparation. boot-process troubleshooting utilities processes infrastructure