linux系统中,查看内存条个数,及每根内存的大小,可以使用dmidecode命令。

如下:

#dmidecode | grep -a16 "memory device$"

输出结果:

memory device #存储设备。

array handle: 0x1000 #阵列处理。

error information handle: not provided #错误信息的处理:不提供。

total width:72 bits #总宽度: 72位。