Friday, February 17, 2012

How to find machine architecture in Linux ?

Run the following command to get the hardware or machine architecture( 32bit or 64bit).
uname, arch and getconf commands can be used for this purpose.

The output of these command is 64bit machine is shown here.

linux # uname -m
x86_64

linux # arch
x86_64

linux # getconf -a | grep LONG_BIT
LONG_BIT 64

The same command output shown in 32bit machine.


linux # uname -m
i686

linux # arch
i686

linux # getconf -a | grep LONG_BIT
LONG_BIT 32
Pin It
Related Posts Plugin for WordPress, Blogger...