LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   32- or 64-bit binary? (https://www.linuxquestions.org/questions/linux-newbie-8/32-or-64-bit-binary-927646/)

Geremia 02-04-2012 06:37 PM

32- or 64-bit binary?
 
How does one check if a Linux binary is 32- or 64-bit? Thanks

AlucardZero 02-04-2012 06:59 PM

file filename

tommyttt 02-04-2012 07:06 PM

Quote:

Originally Posted by Geremia (Post 4593969)
How does one check if a Linux binary is 32- or 64-bit? Thanks

Hi Geremia;
I assume you meab an installed binary, correct? The code below will show what kernel is being used.
Code:

uname -a
Tom

Satyaveer Arya 02-04-2012 07:31 PM

Quote:

# file <filename>
command gives the information about 32-bit or 64-bit executables.

AlucardZero 02-05-2012 09:52 AM

Quote:

Originally Posted by tommyttt (Post 4593978)
Hi Geremia;
I assume you meab an installed binary, correct? The code below will show what kernel is being used.
Code:

uname -a
Tom

That doesn't help much. The running kernel does not necessarily correspond with the bitness of any binary on the system.

Geremia 02-05-2012 11:18 PM

Quote:

Originally Posted by AlucardZero (Post 4593974)
file filename

Excellent! Thank you!


All times are GMT -5. The time now is 06:38 AM.