LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   find out if a program is 32 or 64 bit (https://www.linuxquestions.org/questions/linux-software-2/find-out-if-a-program-is-32-or-64-bit-524442/)

galle 01-31-2007 01:50 PM

find out if a program is 32 or 64 bit
 
As the title says; is there an easy way in linux to find out if a binary is 32-bit or 64-bit?

Cheers

b0uncer 01-31-2007 01:53 PM

Maybe file? I could imagine:

Quote:

[user@localhost ~]$ file /usr/bin/file
/usr/bin/file: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped

galle 01-31-2007 01:59 PM

Great! Exactly what I was looking for.

Thanks!


All times are GMT -5. The time now is 07:46 AM.