linux查询核数

cat /proc/cpuinfo |grep "processor" |wc -l

原文地址:https://www.cnblogs.com/zshboke-2015/p/14272653.html