Linux dmesg command tutorial

'dmesg' command is used to examine or control the kernel ring buffer. The program helps users to print out their bootup messages. Instead of copying the messages by hand, the user need only:

dmesg > boot.messages

and mail the boot.messages file to whoever can debug their problem.

If you want to go through the message line by line, try dmesg with this option:

dmesg | less

or you can use 'grep' to pick up what you need. For example:

dmesg | grep hd

Add new comment