当前位置: > CentOS > CentOS入门 >

Centos系统查看硬件信息命令的使用

时间:2014-03-29 18:19来源:linux.it.net.cn 作者:IT网

在windows系统中,我们可以很容易的就能得到计算机的硬件信息,在Linux系统中使用什么样的命令能得到系统的硬件信息呢,下面介绍Linux硬件信息命令:

1、 主板信息 

查看主板的序列号  
-------------------------------------------------- 
#使用命令
dmidecode | grep -i 'serial number'
#查看板卡信息
cat /proc/pci 
--------------------------------------------------

2,、cpu信息

--------------------------------------------------
#通过/proc文件系统
1) cat /proc/cpuinfo
#通过查看开机信息
2) dmesg | grep -i 'cpu'
#
3)dmidecode -t processor
--------------------------------------------------

3、 硬盘信息

--------------------------------------------------
#查看分区情况
fdisk -l
#查看大小情况
df -h
#查看使用情况
du -h
#
hdparm -I /dev/sda
#
dmesg | grep sda
--------------------------------------------------

4、内存信息

--------------------------------------------------
1) cat /proc/meminfo
2) dmesg | grep mem
3) free -m
4) vmstat
5) dmidecode | grep -i mem
--------------------------------------------------

5、网卡信息

--------------------------------------------------
1) dmesg | grep -i 'eth'
2) cat /etc/sysconfig/hwconf | grep -i eth
3) lspci | grep -i 'eth'
--------------------------------------------------

6,、鼠标键盘和USB信息

查看键盘和鼠标:cat /proc/bus/input/devices
查看USB设备:cat /proc/bus/usb/devices
查看各设备的中断请求(IRQ):cat /proc/interrupts

7、 显卡信息

--------------------------------------------------
1)lspci |grep -i 'VGA'
2)dmesg | grep -i 'VGA'
--------------------------------------------------

8、 声卡信息

--------------------------------------------------
1)lspci |grep -i 'VGA'
2)dmesg | grep -i 'VGA'
--------------------------------------------------

7、 其他Linux硬件信息命令

.用硬件检测程序kuduz探测新硬件:service kudzu start ( or restart)
.dmesg (查看所有启动时检测到的硬件信息)
.lspci (显示外设信息, 如usb,网卡等信息)
.cat /etc/sysconfig/hwconf
.mpstat

8、 需要手动安装的工具

lshw,hwinfo,hal-device-manager

以上是一些在字符下可以查看机器硬件信息的Linux硬件信息命令。

(责任编辑:IT)
------分隔线----------------------------
栏目列表
推荐内容