Determining a 32 vs. a 64 bit kernel / CPU

There's a few ways avialable.

Using uname to check the machine hardware name:

Checking a system binary (note - use a system binary as in the following because it should represent the system):

Checking for the "lm" CPU flag indicates hardware capability (but not necessarily that the running kernel is in 64 bit mode):

References:

BradsWiki: Determining a 32 vs. a 64 bit kernel/CPU (last edited 2011-03-01 11:07:53 by BradleyDean)