?1.获取CPU详细信息
cat /proc/cpuinfo
2.查看物理CPU个数
cat /proc/cpuinfo |grep "physical id"|sort |uniq |wc -l
3.查看CPU核数
cat /proc/cpuinfo |grep "cores"|uniq
4.查看CPU型号(16个逻辑CPU)
cat /proc/cpuinfo | grep name | cut -f2 -d: |uniq -c
5.查看CPU主频
cat /proc/cpuinfo |grep MHz|uniq
6.当前CPU运行模式
getconf LONG_BIT