查看CPU个数 grep 'physical id' /proc/cpuinfo | sort -u | wc -l 2 查看核心数量 grep 'core id' /proc/cpuinfo | sort -u | wc -l 16 查看线程数量 grep 'processor' /proc/cpuinfo | sort -u | wc -l 64 === cat /proc/cpuinfo Intel(R) Xeon(R) 8255C CPU === 结论 1个10核的...
1. 查看物理CPU的个数 cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l 2. 查看逻辑CPU的个数 cat /proc/cpuinfo |grep "processor"|wc -l 3. 查看CPU是几核 cat /proc/cpuinfo |grep "cores"|uniq 4. 查看CPU的主频 cat /proc/cpuinfo |grep MHz|uniq ...