Linux common commands-32: dmesg

The dmesg command is used to inspect and control the kernel’s ring buffer. The kernel stores boot information in the ring buffer . We generally use dmesg to view the boot information of the system. At the same time, the boot information is saved in the file /var/log/dmesg .

Syntax format: dmesg [parameter]

Common parameters:


 # 查看开机过程中的网卡eth0 dmesg | grep eth0

 # 清空环形缓冲区中的日志dmesg -c

This article is reprinted from
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment

Your email address will not be published.