新聞中心
linux 是用戶(hù)友好的開(kāi)源操作系統(tǒng)之一,在這個(gè)系統(tǒng)中,有很多命令可以幫助用戶(hù)獲取、查看和更改有關(guān) CPU 信息的數(shù)據(jù)。本文將介紹教你如何在 Linux 上查看 CPU 信息的一些步驟。

成都創(chuàng)新互聯(lián)是一家專(zhuān)注網(wǎng)站建設(shè)、網(wǎng)絡(luò)營(yíng)銷(xiāo)策劃、小程序制作、電子商務(wù)建設(shè)、網(wǎng)絡(luò)推廣、移動(dòng)互聯(lián)開(kāi)發(fā)、研究、服務(wù)為一體的技術(shù)型公司。公司成立十載以來(lái),已經(jīng)為超過(guò)千家會(huì)所設(shè)計(jì)各業(yè)的企業(yè)公司提供互聯(lián)網(wǎng)服務(wù)?,F(xiàn)在,服務(wù)的超過(guò)千家客戶(hù)與我們一路同行,見(jiàn)證我們的成長(zhǎng);未來(lái),我們一起分享成功的喜悅。
首先,要查看 CPU 信息,你可以使用`cat /proc/cpulinfo`命令,它會(huì)列出當(dāng)前 CPU 的類(lèi)型、模型、架構(gòu)、序列號(hào)、速度以及緩存大小等信息,如下所示:
# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 58
model name : Intel(R) core(TM) i7-3520M CPU @ 2.90GHz
stepping : 9
cpu MHz : 2394.000
cache size : 4096 KB
另外,你還可以使用`lscpu`命令來(lái)獲取有關(guān) CPU 的更多信息,例如 CPU 的位寬,支持的指令集,地址大小,最大 CPU 數(shù)量等等,如下所示:
# lscpu
Architecture: x86_64
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
Thread(s) per core: 2
Core(s) per socket: 1
Socket(s): 1
Model name: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz
CPU family: 6
CPU MHz: 2394.000
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 4096K
NUMA node0 CPU(s): 0,1
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
最后,你也可以使用`dmidecode`命令來(lái)獲取 CPU 的更多信息,如 CPU 類(lèi)型、位寬、生產(chǎn)商、型號(hào)、序列號(hào)、速度等等,如下所示:
# dmidecode -t processor
# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 2.6 present.
Handle 0x000E, DMI type 4, 42 bytes
Processor Information
Socket Designation: CPU
Type: Central Processor
Family: Core i7
Manufacturer: GenuineIntel
ID: B1 06 02 00 FF FB EB BF
Signature: Type 0, Family 6, Model 58, Stepping 9
Flags:
FPU (Floating-point unit on-chip)
VME (Virtual mode extension)
DE (Debugging extension)
PSE (Page size extension)
TSC (Time stamp counter)
MSR (Model specific registers)
PAE (Physical address extension)
MCE (Machine check exception)
CX8 (CMPXCHG8 instruction supported)
APIC (On-chip APIC hardware supported)
SEP (Fast system call)
MTRR (Memory type range registers)
PGE (Page global enable)
MCA (Machine check architecture)
CMOV (Conditional move instruction supported)
PAT (Page attribute table)
PSE-36 (36-bit page size extension)
CLFSH (CLFLUSH instruction supported)
DS (Debug store)
ACPI (ACPI supported)
MMX (MMX technology supported)
FXSR (FXSAVE and FXSTOR instructions supported)
SSE (Streaming SIMD extensions)
SSE2 (Streaming SIMD extensions 2)
SS (Self-snoop)
HTT (Multi-threading)
Version: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz
Voltage: 1.2 V
External Clock: 100 MHz
Max Speed: 2900 MHz
Current Speed: 2900 MHz
Status: Populated, Scalable
Upgrade: Socket LGA1399
L1 Cache Handle: 0x0005
L2 Cache Handle: 0x0006
L3 Cache Handle: 0x0007
Serial Number: Not Specified
Asset Tag: Fill By OEM
Part Number: Not Specified
Core Count: 2
Core Enabled: 2
Thread Count: 4
Characteristics:
64-bit capable
綜上所述,通過(guò)以上這些步驟,你可以很容易的查看 Linux 上的 CPU 信息。
成都創(chuàng)新互聯(lián)科技公司主營(yíng):網(wǎng)站設(shè)計(jì)、網(wǎng)站建設(shè)、小程序制作、成都軟件開(kāi)發(fā)、網(wǎng)頁(yè)設(shè)計(jì)、微信開(kāi)發(fā)、成都小程序開(kāi)發(fā)、網(wǎng)站制作、網(wǎng)站開(kāi)發(fā)等業(yè)務(wù),是專(zhuān)業(yè)的成都做小程序公司、成都網(wǎng)站建設(shè)公司、成都做網(wǎng)站的公司。創(chuàng)新互聯(lián)公司集小程序制作創(chuàng)意,網(wǎng)站制作策劃,畫(huà)冊(cè)、網(wǎng)頁(yè)、VI設(shè)計(jì),網(wǎng)站、軟件、微信、小程序開(kāi)發(fā)于一體。
當(dāng)前標(biāo)題:教你如何在Linux上查看CPU信息(linux看cpu)
文章來(lái)源:http://www.5511xx.com/article/codsiip.html


咨詢(xún)
建站咨詢(xún)
