Linux 查看CPU 核数 还有 CPU 个数的命令

cat /proc/cpuinfo | grep 'physical id' | sort | uniq | wc -l
个数

cat /proc/cpuinfo | grep 'process' | sort | uniq | wc -l

核数
原文地址:https://www.cnblogs.com/jinanxiaolaohu/p/10881653.html