學習啦 > 學習電腦 > 電腦硬件知識 > CPU知識 > linux系統(tǒng)怎么查看自己電腦的cpu位數(shù)

linux系統(tǒng)怎么查看自己電腦的cpu位數(shù)

時間: 沈迪豪908 分享

linux系統(tǒng)怎么查看自己電腦的cpu位數(shù)

  linux系統(tǒng)怎么查看自己電腦的cpu位數(shù)?不知道的話跟著學習啦小編一起來學習linux系統(tǒng)怎么查看自己電腦的cpu位數(shù)。

  linux系統(tǒng)怎么查看自己電腦的cpu位數(shù)的方法

  1.查看Linux的操作系統(tǒng)和硬件cpu位數(shù)

  linux 操作系統(tǒng)的位數(shù)查看

  getconf LONG_BIT 如果是32表示是32位

  eg:

  [root@db ~]# getconf LONG_BIT

  32

  [root@db ~]# getconf WORD_BIT

  32

  或者通過cat /proc/cpuinfo也可以查看

  再或者

  [root@svr-db-test ~]# file /sbin/init

  /sbin/init: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped

  查看cpu硬件架構

  在Linux中使用命令arch可以初步查看出當前系統(tǒng)所識別出來的機器CPU類型,

  如"i386", "i486","i586", "alpha", "sparc", "arm", "m68k",

  "mips", "ppc","ia64","x86_64"等;ia64和x86_64就說明這臺機器是64位的;

  eg:

  [root@db ~]# arch

  i686

  或者

  [root@svr-db-test ~]# uname -m

  x86_64

  或者

  [root@svr-db-test ~]# echo $HOSTTYPE

  x86_64

  2. 查看windows的操作系統(tǒng)和硬件cpu位數(shù)

  Microsoft Windows XP [版本 5.1.2600]

  (C) 版權所有 1985-2001 Microsoft Corp.

  C:/Documents and Settings/Administrator>systeminfo

  主機名: LUOBO-090566BDE

  OS 名稱: Microsoft Windows XP Professional

  OS 版本: 5.1.2600 Service Pack 3 Build 2600

  OS 制造商: Microsoft Corporation

  OS 配置: 獨立工作站

  OS 構件類型: Multiprocessor Free

  注冊的所有人: 微軟用戶

  注冊的組織: 微軟中國

  產(chǎn)品 ID: 76481-640-1464517-23673

  初始安裝日期: 2009-9-2, 10:16:44

  系統(tǒng)啟動時間: 0 天 0 小時 35 分 35 秒

  系統(tǒng)制造商: Dell Inc.

  系統(tǒng)型號: MXC061

  系統(tǒng)類型: X86-based PC

  處理器: 安裝了 1 個處理器。

  [01]: x86 Family 6 Model 14 Stepping 12 GenuineIntel ~1728 Mhz

  BIOS 版本: DELL - 27d70402

  Windows 目錄: C:/WINDOWS

  系統(tǒng)目錄: C:/WINDOWS/system32

  啟動設備: /Device/HarddiskVolume1

  系統(tǒng)區(qū)域設置: zh-cn;中文(中國)

  輸入法區(qū)域設置: zh-cn;中文(中國)

  時區(qū): 暫缺

  物理內存總量: 2,038 MB

  可用的物理內存: 1,554 MB

  虛擬內存: 最大值: 2,048 MB

  虛擬內存: 可用: 1,992 MB

  虛擬內存: 使用中: 56 MB

  頁面文件位置: C:/pagefile.sys

  域: WORKGROUP

  登錄服務器: //LUOBO-090566BDE

  修補程序: 安裝了 143 個修補程序。

  .

  3. AIX查看硬件cpu位數(shù)和os位數(shù)

  顯示機器硬件是32位還是64位

  # bootinfo -y

  64

  查看aix操作系統(tǒng)是32位還是64位

  # bootinfo -K

  64

  PS:原文地址--http://blog.csdn.NET/wyzxg/archive/2009/12/22/5054617.aspx

  本文來自CSDN博客,轉載請標明出處:http://blog.csdn.net/tcsbupt/archive/2010/07/14/5733885.aspx

  Linux下如何查看CPU信息, 包括位數(shù)和多核信息

  # uname -a

  Linux euis1 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux

  (查看當前操作系統(tǒng)內核信息)

  # cat /etc/issue | grep Linux

  Red Hat Enterprise Linux AS release 4 (Nahant Update 5)

  (查看當前操作系統(tǒng)發(fā)行版信息)

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

  8 Intel(R) Xeon(R) CPU E5410 @ 2.33GHz

  (看到有8個邏輯CPU, 也知道了CPU型號)

  # cat /proc/cpuinfo | grep physical | uniq -c

  4 physical id : 0

  4 physical id : 1

  (說明實際上是兩顆4核的CPU)

  # getconf LONG_BIT

  32

  (說明當前CPU運行在32bit模式下, 但不代表CPU不支持64bit)

  # cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l

  8

  (結果大于0, 說明支持64bit計算. lm指long mode, 支持lm則是64bit)

  .

  .

  最后再完整看cpu物理信息, 不過大部分我們都不關心而已.

  # dmidecode | grep -A48 'Processor Information$'

  Processor Information

  Socket Designation: CPU 1

  Type: Central Processor

  Family: Xeon

  Manufacturer: Intel

  ID: 7A 06 01 00 FF FB EB BF

  Signature: Type 0, Family 6, Model 17, Stepping A

  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 (Fast floating-point save and restore)

  SSE (Streaming SIMD extensions)

  SSE2 (Streaming SIMD extensions 2)

  SS (Self-snoop)

  HTT (Hyper-threading technology)

  TM (Thermal monitor supported)

  SBF (Signal break on FERR)

  Version: Intel(R) Xeon(R) CPU E5410 @ 2.33GHz

  Voltage: 1.2 V

  External Clock: 333 MHz

  Max Speed: 2333 MHz

  Current Speed: 2333 MHz

  Status: Populated, Enabled

  Upgrade: <OUT OF SPEC>

  L1 Cache Handle: 0x0005

  L2 Cache Handle: 0x0006

  L3 Cache Handle: 0x0007

  Serial Number: To Be Filled By O.E.M.

  Asset Tag: To Be Filled By O.E.M.

  Part Number: To Be Filled By O.E.M.

  --

  Processor Information

  Socket Designation: CPU 2

  Type: Central Processor

  Family: Xeon

  Manufacturer: Intel

  ID: 7A 06 01 00 FF FB EB BF

  Signature: Type 0, Family 6, Model 17, Stepping A

  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 (Fast floating-point save and restore)

  SSE (Streaming SIMD extensions)

  SSE2 (Streaming SIMD extensions 2)

  SS (Self-snoop)

  HTT (Hyper-threading technology)

  TM (Thermal monitor supported)

  SBF (Signal break on FERR)

  Version: Intel(R) Xeon(R) CPU E5410 @ 2.33GHz

  Voltage: 1.2 V

  External Clock: 333 MHz

  Max Speed: 2333 MHz

  Current Speed: 2333 MHz

  Status: Populated, Enabled

  Upgrade: <OUT OF SPEC>

  L1 Cache Handle: 0x0009

  L2 Cache Handle: 0x000A

  L3 Cache Handle: 0x000B

  Serial Number: To Be Filled By O.E.M.

  Asset Tag: To Be Filled By O.E.M.

  Part Number: To Be Filled By O.E.M.

linux系統(tǒng)怎么查看自己電腦的cpu位數(shù)相關文章:

1.如何查看電腦cpu位數(shù)

2.linux系統(tǒng)怎樣查看CPU信息

3.如何查看linux cpu大小

4.如何查看linux cpu信息

5.linux如何查看cpu個數(shù)

6.linux cpu型號如何查看

1872722