1.查看cpu个数
cat /proc/cpuinfo |grep "physical id" |sort | uniq |wc -l
2
2.查看cpu逻辑个数
cat /proc/cpuinfo |grep "processor"|wc -l
16
3.查看cpu核数
cat /proc/cpuinfo |grep "cores"|uniq
4
4.查看CPU的主频
cat /proc/cpuinfo |grep MHz|uniq
3500 Mhz
时间: 2025-01-17 11:50:49