-   Linux - Software (
-   -   stupid q: how to determine version 64-bit or 32-bit? (

noknow 03-31-2004 08:54 PM

stupid q: how to determine version 64-bit or 32-bit?
Running Redhat 9 (Shrike)

I can't tell if I'm running 64-bit or 32-bit. I was not the installer.

uname -a shows:

Linux <hostname> 2.4.20-20.9smp #1 SMP Mon Aug 18 11:32:15 EDT 2003 i686 i686 i386 GNU/Linux

cat /etc/redhat-release shows:
Red Hat Linux release 9 (Shrike)

cat /proc/version shows:
Linux version 2.4.20-20.9smp ( (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 SMP Mon Aug 18 11:32:15 EDT 2003

vincebs 03-31-2004 08:58 PM

I've always thought that the OS uses the same number of bits as the processor, so if you're using a 64-bit processor then your OS is 64-bit, and if you're using a 32-bit processor (like most of us), then your OS is 32-bit. Isn't it?

noknow 03-31-2004 08:59 PM


I thought you could run 32-bit on 64-bit architecture.

leonscape 03-31-2004 09:01 PM

Your running a 32bit symmetrical multiprocessor kernel. The give away is "i686 i686 i386" bit. If your running a 64bit system then you'd get one of the 64bit arch's.

i.e. sparc64, ia64, etc...

noknow 03-31-2004 09:02 PM

that is very helpful!

Now how would you know that - isn't there a way to get a more direct response from the system??

My knowledge of solaris and aix keeps getting in the way :)

leonscape 03-31-2004 09:08 PM

uname -m

Should give you the machine that the kernel thinks its running on.

noknow 03-31-2004 09:12 PM

I did uname -m as well...

it only says "i686"

All this made me want to assume that it is 32-bit...but it is not a definite answer, unless you know what you know, you know?

leonscape 03-31-2004 09:14 PM

i686 is definatley 32 bit.

Athlons, PentiumII, PentiumIII, Celerons, etc...

What hardware have you got?

noknow 03-31-2004 09:17 PM

IBM eSeries x335 pizza box

noknow 03-31-2004 09:20 PM

oh by the way...

if I do a "readelf -h" on a ELF executable and this line says:

"Class: ELF64"

Doesn't that mean it is a 64-bit executable?

And if so, the fact that it doesn't run possibly be due to the fact that I'm trying to run it on a 32-bit system?


Thanks a ton for your help!

leonscape 03-31-2004 09:24 PM

Are you sure thats not an xSeries? Intel Xeon?

noknow 03-31-2004 09:29 PM

oh yeah sorry I mistyped that.

xSeries x335...
yes it is intel xeon

leonscape 03-31-2004 09:33 PM

Then i686 is the right type of kernel. The file should be ELF32, so you are right, that program won't run on your machine.

noknow 03-31-2004 10:03 PM

Very cool.

Thanks again for your help.

reine 08-05-2008 10:10 AM

64 or32 in that box?
in some cases (no pun intended!), my question could be irrelevant but, why don't you open that box?, could be a nice physical and psychic experience!. Reine.

All times are GMT -5. The time now is 05:58 PM.