Finding the number of bits a executable was compiled

Hi,

Can anyone tell me how to find out how many bits a c executable was compiled in?
I am trying to do some investigation of running 32bit programs in 64bit systems.

Use the file command

file myprogram
1 Like