#1.机器型号
dmidecode | grep "Product Name"
#2.CPU品牌
cat /proc/cpuinfo |grep "model name"|uniq
#查看cpu内核主频大小
cat /proc/cpuinfo |grep MHz|uniq
#3.物理cpu的个数
cat /proc/cpuinfo |grep "physical id"|sort|uniq|wc -l
#4.查看cpu是几核的
cat /proc/cpuinfo |grep "cores"|uniq
#5.逻辑cpu个数
cat /proc/cpuinfo |grep "processor"|wc -l
#6.cpu缓存大小
cat /proc/cpuinfo |grep "cache size"|uniq
#7.内存
cat /proc/meminfo |grep MemTotal