查看内存信息(显示插槽个数和每个插槽里内存条的大小)

dmidecode -t memory | grep Size 查看内存条厂家 dmidecode -t memory | grep Manufacturer free 查看当前内存使用情况