Linux dmesg Command

In this tutorial we learn how to use dmesg commmand in Linux. dmesg command is dmesg - print or control the kernel ring buffer

What is Linux dmesg Command?

In this tutorial we learn how to use dmesg command in Linux. dmesg command is dmesg - print or control the kernel ring buffer

dmesg Syntax

       dmesg [options]
       dmesg --clear
       dmesg --read-clear [options]
       dmesg --console-level level
       dmesg --console-on
       dmesg --console-off

dmesg Examples

dmesg Command Manual / Help

We can use man and info command to see the manual page of dmesg command.

dmesg command also have --help option to show list of options.

To open man page for dmesg command we can use command below. To exit man or info page you can press q.

man dmesg

To open info page for dmesg command we can use command below.

info dmesg

To open help page from dmesg command we can run command below.

dmesg --help

Linux dmesg Command Source Code

You can find dmesg command source code from the folowing repositories:

You can read tutorials of related Linux commands below:

Summary

In this tutorial we learn how to use dmesg in Linux with practical examples. Visit our Linux Commands guide to learn more about using command line interface in Linux.