Linux下CPU信息的查看

逻辑CPU个数: cat /proc/cpuinfo | grep "processor" | wc -l     //32

物理CPU个数: cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l     //2

每个物理CPU中Core的个数: cat /proc/cpuinfo | grep "cpu cores" | uniq     //8

最简单的办法,直接使用lscpu:

原文地址:https://www.cnblogs.com/IvanChen/p/7016447.html