dmesg ("diagnostic message") is a command on Unix-like operating systems that prints the message buffer of the kernel. This buffer contains a lot of important messages from those output during boot, this can be used for diagnostic purpose.
Read more »