Use the following commands to determine the Hardware Architecture
AIX
bootinfo -y
SOLARIS
isainfo -vk
HP-UX
getconf HW_CPU_SUPP_BITS
or
getconf HW_32_64_CAPABLE
If the above command returns 1, hardware supports both 32 and 64 bit binaries
LINUX
grep flags /proc/cpuinfo
If the output of the above command contains the string “lm”, Hardware is 64 bit.
Example:
grep flags /proc/cpuinfo
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht
tm pbe nx lm constant_tsc pni monitor ds_cpl est cid cx16 xtpr lahf_lm
Note: 64 bit capable Hardware does not mean your OS is 64 bit. Generally, for backward compatibility, 64 bit capable Hardware can run 32 bit Software.