/usr/bin/getconf _NPROCESSORS_ONLN
cat /proc/cpuinfo | grep processor | wc -l
获取处理器的内核数量
最新推荐文章于 2023-09-03 17:55:27 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
/usr/bin/getconf _NPROCESSORS_ONLN
cat /proc/cpuinfo | grep processor | wc -l