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:

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

# 清空环形缓冲区中的日志dmesg -c
This article is reprinted from https://xugaoxiang.com/2022/06/10/linux-cmds-32-dmesg/
This site is for inclusion only, and the copyright belongs to the original author.