dmesg:Linux/Unix 系统中的命令,用来查看内核环形缓冲区(kernel ring buffer)里的消息,常用于排查启动过程、驱动加载、硬件识别、设备错误等问题。(也可通过参数进行过滤、分页、显示时间戳等)
/ˌdiː mɛs ˈdʒiː/
I ran dmesg to check why the USB drive wasn’t detected.
我运行了 dmesg 来查看为什么系统没有识别到这只 USB 盘。
After the kernel update, dmesg | grep -i error revealed repeated driver faults and helped pinpoint the failing module.
内核更新后,我用 dmesg | grep -i error 查到反复出现的驱动故障,从而定位到出问题的内核模块。
dmesg 通常被解释为 “diagnostic message(s)”(诊断信息)的缩写,指读取并显示内核输出的诊断/日志信息;在很多系统文档中也会提到它与 内核消息缓冲区 的历史命名习惯有关。
dmesg dmesg dmesg dmesg 的输出思路