使用如下命令查看主板型號:
sudo dmidecode | grep -A16 "System Information$"
使用如下命令查看插槽總數:
dmidecode|grep -P -A5 "Memory\s+Device"|grep Size|grep -v Range | wc -l
使用如下命令查看每個插槽的使用情況:
dmidecode|grep -P -A5 "Memory\s+Device"|grep Size|grep -v Range
查看內存品牌:
sudo dmidecode -t memory | more
其中的Manufacturer字段說明了品牌。
