Check If Linux OS Is 64 Bit or 32 Bit

Overview – How To Check If Linux OS Is 64 Bit or 32 Bit

If you have ever needed to know if you have 32 bit or 64 bit linux installed, there are a number of simple ways to find this out of which I will show you two ways.

Note that if your cpu architecture is a 64 bit cpu, then you are able to install either 32 bit or 64 bit versions of Linux (or any operating system for that matter). However if your cpu architecture is 32 bit, then you are only able to use the 32 bit version of linux. It should also be noted that you are will not be able to install 64 bit applications on a computer with a 64 bit cpu if the linux operating system is running a 32 bit version of linux.

First Method to check if linux os is 64 bit or 32 bit

In your linux shell, type the following:

getconf LONG_BIT

It will return either 32 if you have the 32 bit installated or 64 for 64 bit versions.

Second Method to check if linux os is 64 bit or 32 bit

In your linux shell, type the following:

uname -m

If it returns x86_64 then you have the 64 bit variation and if you see i686 (or even i586, i386, etc.).

64 bit Hardware Support

If you need to see if your cpu architecture supports 64 bit

cat /proc/cpuinfo