使用如下命令查看主板型号:
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
字段说明了品牌。