查看CPU信息(型号)
[root@TX-220-60-211 supdev]# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
40 Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz
查看物理CPU个数
[root@TX-220-60-211 supdev]# cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l
2
查看每个物理CPU中core的个数(即核数)
[root@TX-220-60-211 supdev]# cat /proc/cpuinfo| grep "cpu cores"| uniq
cpu cores : 10
查看逻辑CPU的个数
[root@TX-220-60-211 supdev]# cat /proc/cpuinfo| grep "processor"| wc -l
40
查看memory
[root@TX-220-60-211 supdev]# cat /proc/meminfo |grep Mem
MemTotal: 131928500 kB
MemFree: 75257044 kB
MemAvailable: 90266900 kB