Ubuntu|查看CPU几核

几个cpu

more /proc/cpuinfo |grep “physical id”|uniq|wc -l

每个cpu是几核(假设cpu配置相同)

more /proc/cpuinfo |grep “physical id”|grep “0”|wc -l

有几个进程

cat /proc/cpuinfo | grep processor

原文
 

    原文作者:gavin_cdc
    原文地址: https://blog.csdn.net/gavin_cdc/article/details/92803501
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞