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


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


2 Answers 2


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.


As I know, there are two another ways. The first one is

cat /proc/kmsg

And the second is using 'Ctrl + Alt + Fn' to switch to virtual console. Then every kernel message(include inserting kmod) will be printed on the screen.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .