Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find the linux processor / chip architecture

Tags:

linux

What command should I use to find the processor / chip architecture on Linux?

linux-x86-32 linux-x86-64 linux-ppc-64 
like image 585
Jason Avatar asked Aug 15 '11 15:08

Jason


People also ask

How do I know if my Linux is x86 or x64?

Find out if your Linux installation is 32 bit or 64 bitUname -i gives you the hardware-platform. If you are possibly getting unknown, you can use uname -a to get all the information to find if it is 32-Bit or 64-Bit. Anything that is x86_64 is 64 bit and anything that i386, i686 or similar is 32 bit.

What processor do I have in Linux?

Get CPU Info in Linux The simplest way to determine what type of CPU you have is by displaying the contents of the /proc/cpuinfo virtual file. Identifying the type of processor using the proc/cpuinfo file does not require installing any additional programs. It will work no matter what Linux distribution you are using.


2 Answers

To display kernel architecture: uname -a

To display cpu details: cat /proc/cpuinfo

like image 123
joet3ch Avatar answered Nov 03 '22 17:11

joet3ch


In the terminal, type

lscpu 

which returns output like this:

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 

To only get the architecture:

lscpu | grep Architecture 

Which in this case is

Architecture:          i686 

See man lscpu for more.

like image 35
Montells Avatar answered Nov 03 '22 19:11

Montells