硬件日志:/var/log/dmesg

在 Linux 系统启动时,会在屏幕上显示许多与硬件有关的信息,这些信息记录在 /var/log/dmesg 文件中,也可以用 dmesg 命令来查看

[root@localhost]# head /var/log/dmesg
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-696.6.3.el6.x86_64 (mockbuild@c1bl.rdu2.centos.org) ......
Command line: ro root=/dev/vda1 console=ttyS0 console=tty0 printk.time=1 ......
......
[root@localhost]# dmesg | head
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-696.6.3.el6.x86_64 (mockbuild@c1bl.rdu2.centos.org) ......
Command line: ro root=/dev/vda1 console=ttyS0 console=tty0 printk.time=1 ......
......

 

 

 

 

 

 

      

posted @ 2018-12-24 10:16  孔雀东南飞  阅读(3195)  评论(0编辑  收藏  举报