View the total number of Linux-core server CPU

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四核

Guess you like

Origin www.cnblogs.com/itbsl/p/11257322.html