如何找到linux处理器/芯片架构

时间:2011-08-15 15:08:41

标签: linux

我应该使用什么命令来查找linux处理器/芯片架构?

linux-x86-32
linux-x86-64
linux-ppc-64

5 个答案:

答案 0 :(得分:30)

显示内核架构:uname -a

显示cpu详细信息:cat /proc/cpuinfo

答案 1 :(得分:14)

输入终端:

<强> lscpu

返回此输出:

Architecture:          i686
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                2
On-line CPU(s) list:   0,1
Thread(s) per core:    1
Core(s) per socket:    2
Socket(s):             1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 23
Stepping:              6
CPU MHz:               2670.000
BogoMIPS:              5320.13
L1d cache:             32K
L1i cache:             32K
L2 cache:              3072K

或输入终端

lscpu | grep架构

返回此输出:

Architecture:          i686

答案 2 :(得分:9)

我很惊讶没有人建议uname -m。在我的笔记本电脑上,这会给armv7l,而uname -a给我一个可怕的2行文字。

答案 3 :(得分:7)

见(man uname):

echo `uname -s`-`uname -p`

答案 4 :(得分:3)

最好和最简洁的是命令

y

它为您提供有关您机器的最基本信息。其他像uname,lsb_release,lscpu等返回特定信息。

     hostnamectl