本文摘自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 vnc server自动安装配置工具的详解(图)
Linux中改变文件所有者的命令是什么
Linux远程服务器无法ssh登录的原因及解决方法
为什么要用Linux系统
Linux查看防火墙是否开启
Linux服务怎么启动
Linux系统启动步骤
Linux系统怎么开启root权限
Linux怎么开启php
更多相关阅读请进入《Linux》频道 >>
转载请注明出处:木庄网络博客 » linux如何查看cpu型号?