1.查看CPU型号
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c 2.查看物理CPU的个数 cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l 3.查看逻辑CPU的个数 cat /proc/cpuinfo |grep "processor"|wc -l 4.查看CPU是几核 cat /proc/cpuinfo |grep "cores"|uniq本文共 296 字,大约阅读时间需要 1 分钟。
1.查看CPU型号
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c 2.查看物理CPU的个数 cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l 3.查看逻辑CPU的个数 cat /proc/cpuinfo |grep "processor"|wc -l 4.查看CPU是几核 cat /proc/cpuinfo |grep "cores"|uniq转载于:https://www.cnblogs.com/cnqfz/p/11229960.html