-   Linux - Newbie (
-   -   32 or 64 bit system? (

johnpaulodonnell 02-14-2007 06:57 AM

32 or 64 bit system?

I'm sshing into another linux machine to compile some stuff...but I'll need to know whether it's a 32 or 64-bit system. Can someone help me out with the command that will tell me?


colucix 02-14-2007 07:02 AM


uname -a
The output on a 32 bit machine should be something similar to

Linux hostname 2.6.18-1.2257.fc5 #1 Fri Dec 15 16:06:24 EST 2006 i686 i686 i386 GNU/Linux
The output on a 64 bit machine should be similar to

Linux hostname 2.6.19-1.2895.fc6 #1 SMP Wed Jan 10 18:50:56 EST 2007 x86_64 x86_64 x86_64 GNU/Linux
Note the i686 on 32 bit and x86_64 on 64bit! For a shorter output you can do simply

uname -p

johnpaulodonnell 02-14-2007 07:06 AM

Thanks for your help!

All times are GMT -5. The time now is 12:08 PM.