Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

How to determine whether a given Linux is 32 bit or 64 bit?

When I type uname -a, it gives the following output.

Linux mars 2.6.9-67.0.15.ELsmp #1 SMP Tue Apr 22 13:50:33 EDT 2008 i686 i686 i386 GNU/Linux


How might I know from this that the given OS is 32 or 64 bit?

This is helpful when composing configure scripts, for instance: what architecture am I building for?
by

2 Answers

rahul07
Try uname -m. Which is short of uname --machine and it outputs:

x86_64 ==> 64-bit kernel
i686 ==> 32-bit kernel
kshitijrana14
The command
$ arch
  
is equivalent to
$ uname -m
*
but is twice as fast to type

Login / Signup to Answer the Question.