🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

Linux Intermediate

What is Dmesg?

A command that displays kernel ring buffer messages, useful for diagnosing hardware and driver issues.

Dmesg shows messages from the kernel, including hardware detection, driver loading, and system errors. Useful for diagnosing boot problems, USB device issues, disk errors, and network driver problems.

Common usage: dmesg | tail -50 (recent messages), dmesg -T (human-readable timestamps), dmesg -l err,warn (filter by level). Kernel messages are also accessible via journalctl -k in systemd-based systems.