dmidecode -t memory
#查看内存详细信息
dmidecode -t processor
#查看CPU详细信息
#以上两条命令得在root用户下执行才有输出
dmidecode |grep -iA16 “memory device”|grep -i size|grep -vi no
#查看当前内存的数量及大小
dmidecode |grep -iA16 “memory device”|grep -i speed|grep -vi unknown
#查看当前内存的频率
dmidecode -t processor|grep -i version
#root用户下执行;查看CPU数量及型号。
dmidecode -t processor|grep -i version
#查看CPU基本信息
dmidecode 命令详细可查看:https://blog.csdn.net/legendmaker/article/details/10984009