参考:
Linux下 查看CPU信息
1.查看完整CPU信息:
$ cat /proc/cpuinfo
2.查看逻辑cpu个数:
$ cat /proc/cpuinfo |grep "processor"|wc -l
3.查看物理cpu个数:
$ cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l
4.查看cores:
$ cat /proc/cpuinfo |grep "cores"|uniq
2017.9
1.查看完整CPU信息:
$ cat /proc/cpuinfo
2.查看逻辑cpu个数:
$ cat /proc/cpuinfo |grep "processor"|wc -l
3.查看物理cpu个数:
$ cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l
4.查看cores:
$ cat /proc/cpuinfo |grep "cores"|uniq
2017.9