1826657 Members
2587 Online
109695 Solutions
New Discussion

Compiled executable

 
SOLVED
Go to solution
Jakes Louw
Trusted Contributor

Compiled executable

A question from a developer: is there a way to see if a compiled executable is 32-bit or 64-bit?
Trying is the first step to failure - Homer Simpson
3 REPLIES 3
Robert-Jan Goossens
Honored Contributor
Solution

Re: Compiled executable

Hi,

Just do a file command on the executable,

# file name

Regards,
Robert-Jan
Robert-Jan Goossens
Honored Contributor

Re: Compiled executable

Here is a good example,

db1:/usr/local/bin# file lsof
lsof: ELF-64 executable object file - PA-RISC 2.0 (LP64)

Regards,
Robert-Jan
Umapathy S
Honored Contributor

Re: Compiled executable

file command will give the output. man file for more details.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!