Total number below to view the Linux server CPU core of the method described.
Through the / proc / cpuinfo view CPU number and total number of nuclei.
[root@kevin ~]# grep processor /proc/cpuinfo |wc -l
4 # 表示一颗CPU四核
[root@kevin ~]# grep -c processor /proc/cpuinfo
4 # 表示一颗CPU四核