Related Items  

Linux and Windows IT Support  

dedicated-technology-experts

Windows, Apple and Linux IT support and services.

For Software and Web Development.

Find out if processor is 32bit or 64 (Linux)

PrintE-mail

Q. How can I find out if my processor is 64 bit or 32, under linux.

A. Open shell and type:

cat /proc/cpuinfo

You will get an output, most likely of more than one CPU. Let's just pick one and look at it:

 processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      : Intel(R) Xeon(TM) CPU 2.80GHz
stepping        : 10
cpu MHz         : 2799.990
cache size      : 2048 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 1
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
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 pbe syscall lm constant_tsc pebs bts pni dtes64 monitor ds_cpl cid cx16 xtpr lahf_lm
bogomips        : 5599.98
clflush size    : 64
cache_alignment : 128
address sizes   : 36 bits physical, 48 bits virtual
power management:

Look for lm (Long Mode) under flags - if you can see it, you have a 64 bit CPU, if not, it is a 32 bit one.

If you want to know which version of OS you are running (32bit or 64bit), type in:

uname -a

32 bit:

Linux ubuntu 2.6.24-19-server #1 SMP Wed Aug 20 23:54:28 UTC 2008 i686 GNU/Linux

64 bit:

Linux ubuntu 2.6.32-28-server #55-Ubuntu SMP Mon Jan 10 23:57:16 UTC 2011 x86_64 GNU/Linux

It will say "i686" for 32bit and "x86_64" for 64bit.

Do I have VT support?

Find out if your system supports Hyper-V by running the following commands.

On Intel based processors:

grep vmx /proc/cpuinfo

For AMD based processors, run the following command:

grep svm /proc/cpuinfo

Comments (6)
alternative to uname -a
6 Thursday, 04 December 2014 14:29
D313373D
cat /proc/version
uname -a

each give similar information about the system
thanks
5 Tuesday, 28 May 2013 04:05
klay
thanks guys for the information
Running OS version
4 Friday, 10 August 2012 05:19
txomon
I would recommend using uname -m to know which kernel version you are running. And uname -i for the processor
Thanks
3 Tuesday, 29 November 2011 11:30
K
Thanks for the post.
virtualization
2 Tuesday, 22 November 2011 07:30
Ant
@Marco: I've updated the post with the commands to check for virtualization support.
Thanks
1 Saturday, 19 November 2011 12:00
Marco
Thanks - this is what I was looking for. How do I know if it also supports virtualization?

Add your comment

Your name:
Subject:
Comment:
  The word for verification. Lowercase letters only with no spaces.
Word verification:
yvComment v.1.24.0
   
Copyright © 1999 - 2024 Virtual Helpme | Trusted IT Services | Original Template: Allrounder