LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Finding system type (https://www.linuxquestions.org/questions/linux-newbie-8/finding-system-type-4175444914/)

gajananh999 01-09-2013 11:41 PM

Finding system type
 
Dear Everyone,

May i know how to know my system type that 32 bit or 64 bit

when i do
uname -a it gives me this one

Linux ip-10-84-238-191 2.6.18-164.0.0.0.1.el5xen #1 SMP Thu Sep 3 00:34:43 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

so may i know which is this machine type?

shivaa 01-10-2013 12:00 AM

x86_64 in uname -a indicates a 64-bit kernel. i386 or i686 indicates a 32-bit kernel.

Or you can find it using:-
Code:

grep flags /proc/cpuinfo

ukiuki 01-10-2013 12:05 AM

Quote:

Originally Posted by gajananh999 (Post 4866708)
....x86_64 x86_64 x86_64 GNU/Linux...

As you can see x86_64 which is 64 bits, another way to find out is looking at the processor model and then looking at the manufacturer website for details will tell you that as well.
Type in the terminal:
Code:

cat /proc/cpuinfo | grep model
Regards

chrism01 01-10-2013 12:33 AM

To clarify, uname shows you whether the OS (kernel) is 32 or 64 bit.
The other cmds show the HW capability.

You can run a 32bit kernel on 64 bit HW, but the reverse is not true.
In fact some 64bit distros eg RHEL/Centos provide a 'multi-lib' 64 bit OS, which can run both 32 & 64 bit apps on the 64 bit kernel (at the same time).


All times are GMT -5. The time now is 03:55 PM.