Try
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