1、主板信息: 主板序列:dmidecode | grep -i 'serial number' 板卡信息:cat /proc/pci -------------------------------------------------------------------- 2、cpu信息: cat /proc/cpuinfo dmesg | grep -i 'cpu' dmidecode -t processor -------------------------------------------------------------------- 3、硬盘信息: 分区:fdisk -l 大小:df -h 使用:du -h -------------------------------------------------------------------- 4、内存: cat /proc/meminfo -------------------------------------------------------------------- 5、网卡: cat /etc/sysconfig/hwconf | grep -i eth -------------------------------------------------------------------- 6、鼠标键盘和usb 鼠标和键盘:cat /proc/bus/input/devices usb :cat /proc/bus/usb/devices -------------------------------------------------------------------- 7、显卡信息 1)lspci |grep -i 'VGA' 2)dmesg | grep -i 'VGA' -------------------------------------------------------------------- 8、声卡信息 1)lspci |grep -i 'VGA' 2)dmesg | grep -i 'VGA' -------------------------------------------------------------------- 探测新硬件:service kudzu start ( or restart) |
|
来自: 昵称7558781 > 《linux常用命令》