Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

size of machine 64 or 32 bit

Tags:

unix

If I am working on a Unix machine, how could I know the size of the machine whether it is 64-bit or 32-bit machine?

like image 312
Vijay Avatar asked Apr 08 '10 16:04

Vijay


2 Answers

AIX you can do this:

getconf KERNEL_BITMODE

HP-UX you can do this:

getconf KERNEL_BITS

or just:

getconf -a | grep KERN

Sun Solaris you can do this:

isainfo -v

For Linux, yes, the uname -a should do the trick

like image 72
BrianH Avatar answered Oct 12 '22 03:10

BrianH


You can type

uname -m 

if i686 or i386 is appearing, you are working with 32 bit if X86_64 is appearing, you are working with 64 bit

like image 37
Poyraz Avatar answered Oct 12 '22 02:10

Poyraz