Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

What is the Linux command to find out whether a Linux third party application is 32 bit or 64 bit

share|improve this question

2 Answers 2

you can use file:

user@host:~$ file /bin/ls 
/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped

In my case a 64-bit LSB executable..

share|improve this answer

file(1)

$ file =ls
/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
share|improve this answer
3  
The equal sign used this way is a zsh-ism, in case anyone wonders. See man zshexpn under "Filename expansion" ('=' expansion) for details. –  Dennis Williamson Oct 1 '09 at 19:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.