Operating System - Linux
1830234 Members
2383 Online
109999 Solutions
New Discussion

Re: how to find If my linux OS is 64 bit or 32 ...

 
donne007
Regular Advisor

how to find If my linux OS is 64 bit or 32 ...

Can Some one tell me. How to find If my linux OS is 64 bit or 32 ...
I Couldnt Find any info in
/proc/version
/etc/redhar-release

Thanks
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: how to find If my linux OS is 64 bit or 32 ...

find your kernel

cd /boot

file

That will tell you for certain.

If you are running on an Itanium box I can tell you already. Its 64 bit.

Otherwise most likely 32 bit.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
John Collier
Esteemed Contributor

Re: how to find If my linux OS is 64 bit or 32 ...

The only other way that your Linux could be a 64 bit would be if you are working on â Heavy Metalâ boxes (ie: old HP-UX, Sun servers, or mainframes) or if you are running on one of the new AMD 64 chips.

Unless you know for sure that you are on some of the hardware mentioned above, then it is most certainly a 32 bit sy
"I expect to pass through this world but once. Any good, therefore, that I can do, or any kindness that I can show to any human being, let me do it now. Let me not defer or neglect it, for I shall not pass this way again." Stephen Krebbet, 1793-1855
Johannes Krackowizer_1
Valued Contributor

Re: how to find If my linux OS is 64 bit or 32 ...

hi,

what cpu is in your box? if it is an ordinary Intel P4, P4 HT, AMD Athlon, Athlon XP, ... it's only 32 bit OS available.

if you have an 64 bit processor like Itanium, HPPA2.0, AMD64, ... you will be able to use an 64 bit kernel.

best regards

johannes
"First off, I'd suggest printing out a copy of the GNU coding standards, and NOT read it. Burn them, it's a great symbolic gesture." (Linus Torvalds)
Jose Javier Sianes Ruiz
Frequent Advisor

Re: how to find If my linux OS is 64 bit or 32 ...

Why dont you try:

uname -a

Michael Garner_1
Honored Contributor

Re: how to find If my linux OS is 64 bit or 32 ...

The easiest way is to use the uname -m command. This will return one of three values depending on which architecture your Linux is running. The returned values are:

i686 (or i586 if SUSE) 32-bit Intel
athlon 32-bit AMD mode (could
be 64-bit Opteron)
x86_64 new Intel EM64T or
AMD Opteron chip*
ia64 Itanium-based processor

*To tell the difference on a x86_64 server whether you are running an AMD or Intel processor, you would use the values in /proc/cpuinfo. If you find "Genuine Intel", it's an Intel processor. If you find "Genuine AMD" or "Unknown", it is most likely you are running an AMD processor. Some distributions do not know how to handle the AMD Opteron processor values in the cpuinfo file so will list it as Unknown.

A point to note...on a 64-bit capable Intel or AMD processor-based ProLiant server, it is the distribution of Linux that is installed that actually determines whether you are running 32-bit or 64-bit. If you have a 64-bit capable processor, but install a 32-bit distribution, you will only run at 32-bits. To take full advantage of the 64-bit capable ProLiant servers, you must run a 64-bit distribution of Linux.

Michael Garner
Linux PSP Developer
donne007
Regular Advisor

Re: how to find If my linux OS is 64 bit or 32 ...

Thank you all !!