Friday, August 6, 2010

Executable 32-bit or 64-bit

An easy way to check if an executable is compiled for 32-bit vs. 64-bit is the file command:
file myabc 
The same command may be run on a library:
file libxyz.so
The output of the file command lists information such as whether the file is an executable or a shared object, whether or it is dynamically linked (using shared libs), etc.