Month: May 2015

Monitor dmesg in real time

dmesg is the command line tool for outputing the message buffer of the kernel. Monitoring it in real time with the command below comes in handy when trying to diagnose problems. watch -n 0.1 “dmesg | tail -n $((LINES-6))” The watch command executes dmesg over and over again until you stop it.