标签:
cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l //查看CPU的个数
cat /proc/cpuinfo |grep "processor"|wc -l //查看逻辑cpu的个数
cat /proc/cpuinfo |grep "cores"|uniq //查看CPU是几核
CPU信息查询
原文地址:http://www.cnblogs.com/carltonx/p/5575149.html