簡明Linux命令列筆記:dmesg 顯示核心訊息 www.2cto.com dmesg [options] dmesg 可以用來顯示儲存在核心環緩衝區中的訊息 系統啟動時,核心會用硬體和模組初始化的相關訊息填充其環緩衝區。核心環緩衝區中的訊息常常用於診斷系統問題 選項-c 運行dmesg後情況核心環緩衝區 www.2cto.com 樣本dmesg > [root@localhost ~]# dmesg > message[root@localhost ~]# head -4 message Initializing cgroup subsys cpusetInitializing cgroup subsys cpuLinux version 2.6.32-279.el6.i686 (mockbuild@c6b9.bsys.dev.centos.org) (gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Fri Jun 22 10:59:55 UTC 2012KERNEL supported cpus: www.2cto.com 將系統啟動的情況重新導向到某一檔案 dmesg | grep[root@localhost ~]# dmesg | grep eth0e1000 0000:00:03.0: eth0: (PCI:33MHz:32-bit) 08:00:27:14:99:a3e1000 0000:00:03.0: eth0: Intel(R) PRO/1000 Network Connectione1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX8021q: adding VLAN 0 to HW filter on device eth0eth0: no IPv6 routers present過濾dmesg中的資訊