本文摘自PHP中文网,作者青灯夜游,侵删。
在linux中可以通过查看/proc/cpuinfo文件的model name信息、或直接使用命令cat /proc/cpuinfo | grep 'model name' |uniq
来查看cpu型号。
在Linux系统中,提供了proc文件系统显示系统的软硬件信息。如果想了解系统中CPU的提供商和相关配置信息,则可以通过/proc/cpuinfo文件得到。
使用以下命令来读取/proc/cpuinfo文件,查看cpu的信息
输出:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | processor : 0
vendor_id :GenuineIntel
cpu family :6
model :26
model name :Intel(R) Xeon(R) CPU E5520 @ 2.27GHz
stepping :5
cpu MHz :1600.000
cache size : 8192 KB
physical id :0
siblings :8
core id : 0
cpu cores :4
apicid :0
fpu :yes
fpu_exception :yes
cpuid level : 11
wp :yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm constant_tsc ida nonstop_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr popcnt lahf_lm
bogomips :4522.12
clflush size :64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management :
|
其中查看“model name”行输出,就可查看cpu的名称,型号,主频等信息。
相关说明:
阅读剩余部分
相关阅读 >>
怎么运行Linux程序
Linux系统命令无法使用
Linux find命令怎么用
为一台或多台ecs实例预约模拟系统事件
Linux下tomcat无法访问
Linux was安装步骤
Linux默认的shell是什么
如何通过 api 管理或定制开发 ecs 实例
Linux .(点)是什么意思
Linux上磁盘热插拔是什么意思?
更多相关阅读请进入《Linux》频道 >>
转载请注明出处:木庄网络博客 » linux如何查看cpu型号?