linux查看cpu个数

grep -c 'processor' /proc/cpuinfo

原文地址:https://www.cnblogs.com/brady-wang/p/14042486.html