Linux Commands Helper
💬 Your AI-powered Linux assistant
dmesg Command - Print or Control the Kernel Ring Buffer
The dmesg command is used to examine or control the kernel ring buffer. It displays messages from the kernel, including hardware, driver, and boot information.
Syntax
dmesg [options]
Examples
dmesg | less
View kernel messages page by page.
dmesg -T
Show human-readable timestamps.
Notes
- Requires root privileges for some options.
- Useful for troubleshooting hardware and driver issues.
- For persistent logs, use
journalctl
on systemd systems.