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?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
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.
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.