How to find Linux/Unix OS is 32 or 64 Bit Architecture

 

 

Question: How do i find the Linux/Unix Operation System i am  using  is 32 or 64 Bit Architecture.

 

 

 

 

 

 

 

Answer: To find whether the Linux / Unix OS is 32 bit or 64 Bit use the below commands.

#getconf LONG_BIT
64                                    # This is 64 bit
32                                    # This is 32 bit

#uname -m
i686                #  If  is like this means 32 bit
x64_64            #  If it is like this means 64 bi

#arch
i686                # If it is like this means 32 bit
x64_64            # If it is like this means 64 bit

#file /sbin/init
/sbin/init: ELF 64-bit LSB executable, x86-64, version…        # This is 64 bit
/sbin/init: ELF 32-bit LSB executable, Intel 80386,…            # This is 32 bit

#file /usr/bin/file
/sbin/init: ELF 64-bit LSB executable, x86-64, version…        # This is 64 bit
/sbin/init: ELF 32-bit LSB executable, Intel 80386,…            # This is 32 bit