Linux下檢視記憶體型號、主機板、硬碟等等
首先檢視是否安裝了dmidecode工具
[[email protected] ~]# dmidecode
-
Linux 檢視記憶體的插槽數,已經使用多少插槽.每條記憶體多大:
[[email protected] ~]# dmidecode|grep -A5 "Memory Device"|grep Size|grep -v Range
Size: 4096 MB
Size: 4096 MB
Size: No Module Installed
Size: No Module Installed -
Linux 檢視記憶體的頻率:
[[email protected]
Speed: 2400 MT/s
Speed: 2400 MT/s
Speed: Unknown
Speed: Unknown -
在linux檢視記憶體型號的命令:
[[email protected] ~]# dmidecode -t memory
-
最大支援幾G記憶體
[[email protected] ~]# dmidecode|grep -P 'Maximum\s+Capacity'
-
檢視主機板型號:
[[email protected] ~]# dmidecode |grep -A16 "System Information$"
-
記憶體槽及記憶體條:
[[email protected] ~]# dmidecode |grep -A16 "Memory Device$"
-
總共幾個插槽,已使用幾個插槽
[[email protected] ~]# dmidecode|grep -P -A5 "Memory\s+Device"|grep Size|grep -v Range
-
硬碟:
[[email protected] ~]# fdisk -l
[[email protected] ~]# smartctl -a /dev/sda
-
網絡卡:
[[email protected]
-
檢視cpu個數與頻率
[[email protected] ~]# cat /proc/cpuinfo
-
檢視系統品牌和型號
[[email protected] ~]# dmidecode |grep "Product Name"