We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now


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

vmwarecv1 asked
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
Watch Question

uname -p

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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Maciej Ssysadmin


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.
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 :)

ls /lib/modules


Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.