看cpu核数

grep processor /proc/cpuinfo |wc -l
4 表示4核

  

原文地址:https://www.cnblogs.com/sz-jack/p/15009836.html