LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   32 or 64 bit system? (https://www.linuxquestions.org/questions/linux-newbie-8/32-or-64-bit-system-528950/)

johnpaulodonnell 02-14-2007 06:57 AM

32 or 64 bit system?
 
Hi.

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?

Thanks.

colucix 02-14-2007 07:02 AM

Try
Code:

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

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
Code:

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
Code:

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.