linux中查看各硬件资源信息的命令小结
发布时间:2016-12-27 来源:查字典编辑
摘要:1.显卡信息dmesg|grep-ivgalspci|grep-ivga//查看显卡信息2.dmidecode|grep-i'serrial...
1.显卡信息
dmesg | grep -i vga
lspci | grep -i vga //查看显卡信息
2.dmidecode | grep -i 'serrial number' //查看主板信息,查看主板的序列号
3.CPU信息
#通过/proc文件系统
cat /proc/cpuinfo
dmesg | grep -i cpu
#通过查看开机信息
dmidecode -t processor
4.硬盘信息
fdisk -l //分区情况
df -h //大小情况
du -h //使用情况
dmesg | grep sda
5.内存信息
cat /proc/meminfo
dmesg | grep mem
free -m
vmstat
dmldecode | grep -i mem
6.网卡信息
dmesg | grep -i eth
lspci | grep -i eth
7.鼠标键盘和USB信息
cat /proc/bus/input/devices 查看键盘和鼠标
cat /proc/bus/usb/devices 查看USB设备
cat /proc/interrupts
8.声卡信息
lspci | grep -i vga
dmesg | grep -i vga
9.其他命令
lspci (显示外设备信息,如USB,网卡等信息)