How to check ubuntu a 32 bit or 64 bit?

feature_img_ubuntu_32bit_or_64bit

Sometime you may need to know whether you are running a 32 bit or 64 bit Operating System to choose which version of software to download.

There are prominent 2 ways to find out

uname -a

if it is a 32bit Ubuntu, the output looks similar to below. Highlighted i686 or i386 identifies OS is 32bit

Linux UbuntuBox 3.19.0-59-generic #66~14.04.1-Ubuntu SMP Fri May 13 17:27:10 UTC 2016 i686 i686 i386 GNU/Linux

if it is a 64bit Ubuntu, the output looks similar to below. Highlighted x86_64  identifies OS is 64bit

Linux UbuntuBox 3.19.0-59-generic #66~14.04.1-Ubuntu SMP Fri May 13 17:27:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

you can also try the same using command uname -i or uname -m or arch

file /sbin/init

Run the above command, the output looks similar to the below. Highlighted 64-bit indicates the OS is 64 bit.

/sbin/init: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=7a4c688d009fc1f06ffc692f5f42ab09e68582b2, stripped

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>