查看CPU信息(型号)
1 cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
# 查看物理CPU个数
1 cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l
# 查看每个物理CPU中core的个数(即核数)
1 cat /proc/cpuinfo| grep "cpu cores"| uniq
# 查看逻辑CPU的个数
1 cat /proc/cpuinfo| grep "processor"| wc -l
标签:cpuinfo,grep,查看,cpu,linux,cat,proc,CPU From: https://www.cnblogs.com/dba-oilz/p/17502128.html