Dmesg
dmesg is a command-line utility that reads and prints messages from the kernel's ring buffer. The kernel writes messages about boot progress, hardware events, driver status, and other internal notices to this buffer, which is preserved in memory for a limited time while the system is running.
The kernel ring buffer acts as a circular store for diagnostic messages. As new messages arrive, older
Typical usage includes printing the current content and performing simple filtering. Options commonly used are -c
On many systems access to dmesg is restricted to privileged users or to those with the CAP_SYSLOG
See also: syslog, kernel log, system log management, and the journal in systems using the systemd journal.