Ewige前夕
Linux通过lscpu等查看CPU信息的几个命令

CPU信息总览

cat /proc/cpuinfo

1、查看CPU信息(型号)

cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c

2.查看物理CPU

cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l

3.查看逻辑CPU个数

cat /proc/cpuinfo |grep "processor"|wc -l

4.查看CPU是几核

cat /proc/cpuinfo |grep "cores"|uniq

5.查看CPU的频率

cat /proc/cpuinfo |grep MHz|uniq

 

发表评论

textsms
account_circle
email

Ewige前夕

Linux通过lscpu等查看CPU信息的几个命令
CPU信息总览 cat /proc/cpuinfo 1、查看CPU信息(型号) cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c 2.查看物理CPU cat /proc/cpuinfo |grep "physical id"|sort |uniq…
扫描二维码继续阅读
2017-08-13