how to check if your centos is 32 bits or 64 bits ?

Summary: In this post i explain how to check if your centos is 32 bits or 64 bits system architecture.

Method-1:

To know if your Cent OS is 32 bit or 64 bit, You can check with the following command, the out put will be 32 or 64.

getconf LONG_BIT

Method-2:

Linux provides a command called uname, which prints system information including kernel version and whether kernel is 32 bit or 64 bit.

If the uname -a output displays x86_64, then the system is running 64bit Linux kernel.

If the uname -a output displays i386/i486/i586/i686, then the system is running 32bit Linux

Method-3:

Use /proc/cpuinfo

Execute “less /proc/cpuinfo” command to determine if the CPU on the server is 64 bit or 32 bit.

cpuinfo file displays the kernel bits in Linux operating system.

Execute the following command and if you see “lm” in the output, you have a 64 bit CPU based system.

Leave a Reply

Your email address will not be published. Required fields are marked *