Home > Uncategorized > How to tell if Linux is 32 or 64 bit

How to tell if Linux is 32 or 64 bit

Sometimes you want to tell if your Linux installation is 32 bit or 64 bit.

Short story:

just type this:

getconf LONG_BIT

 

Longer story:

You can also type

uname –m

if it is x86_64, then it is 64bit.

cat /proc/cpuinfo doesn’t work in this case, because what it shows is about CPU. 32bit linux can run on 64bit CPU.

They should make this more obvious.

Categories: Uncategorized Tags: ,
  1. No comments yet.
  1. No trackbacks yet.
Orange Cabin