查看CPU信息(型號)
[root@server ~]# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHzui
# 查看物理CPU個數
[root@server ~]# cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -lserver
# 查看每一個物理CPU中core的個數(即核數)
[root@server ~]# cat /proc/cpuinfo| grep "cpu cores"| uniq
cpu cores : 6sso
# 查看邏輯CPU的個數
[root@server ~]# cat /proc/cpuinfo| grep "processor"| wc -lgrep