how to verify if the OS installed is a 32bit or 64 bit?

Posted on 2009-02-18
Medium Priority
Last Modified: 2012-05-06
My server has rhel 5.2 installed.
i entered the command
# getconf LONG_BIT and got the output as 64, so i decided the OS is a 64 bit, but i wanted 32 bit OS, so I got a new 32 bit OS image and after installation, I entered getconf LONG_BIT and i got the output as 64.  
To make sure I  reinstalled the OS with both 64 bit image and 32 bit image again and i see the same output.
I am wondering if i am looking at the correct place to verify the type of OS installed.
Please let me know how to verify whether a OS is 32 or 64 bit.

Thanks in advacne
Question by:vmwarecv1
LVL 12

Accepted Solution

Heem14 earned 450 total points
ID: 23675603
uname -p

will show x86_64 for 64bit OS and i686 for 32bit
LVL 23

Assisted Solution

by:Maciej S
Maciej S earned 150 total points
ID: 23675700

Author Comment

ID: 23675837
for both the versions, uname -p gives the same output x86_64.
I am getting doubt whether I have the correct image, the one which actually says 32-bit might be a 64-bit.
I am guessing its nothing to do with the hardware for the tricky outputs shown above.
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.


Assisted Solution

kenny555 earned 150 total points
ID: 23677301
I'm guessing here that you're installing your OS as a virtual machine on ESX?
Because I had similar problem before and the root cause is when you first set guest operating system, you select 64-bit Linux.  Then, regardless what you install, 32-bit or 64-bit,  your system will say 64 bit.
I hope that helps :)

Expert Comment

by:Morne Lategan
ID: 23677398
ls /lib/modules

Author Closing Comment

ID: 31548509

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question