Linux Hints
From Consultancy.EdVoncken.NET
Processor Architecture
Does my CPU support 64 bit?
Check the processor flags in /proc/cpuinfo for the "lm" (Long Mode) flag. This indicates if you have an x86_64 architecture CPU.
Am I running a 32 or 64 bit kernel?
In your scripts, use the following snippet to determine if you are running on a 32-bit or 64-bit kernel:
KERNELBITS=`getconf LONG_BIT`