Ubuntu – How to display messages from kernel module without using dmesg

dmesgkernel

In order to display the messages loaded into a kernel module, I can use the command

dmesg

Is there any alternatives for this command? How this function gets all these kernel messages?

Best Answer

All messages you can see with dmesg are by default written to var/log/syslog as well. So you can look through this log file with any tool you like.

I use less var/log/syslog for reading it later or tailf var/log/syslog for "just in time" purposes.

As zwets has just pointed out: /var/log/dmesgcontains the dmesg output collected during system boot.

Related Question