home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] 64 bit executable check

file myfile

eg:

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



On 04/13/2010 11:32 AM, Prof. John C Nash wrote:
> With a colleague I've been building some statistical tools for Lin and Win. We want 64 
> bit. Does anyone know of a quick check to see if a binary is 64 bit. I think there should 
> be something like
> 
>      checkbin myfile
> 
> that will return the type e.g., ELF 32, ELF 64 etc.
> 
> Of course, we'd like to find Win equivalent too. But for starters a Linux tool would be 
> helpful.
> 
> I've found it difficult to come up with search terms that don't find all sorts of 
> extraneous material and nothing of interest.
> 
> Cheers, JN
> _______________________________________________
> Linux mailing list
> Linux [ at ] lists [ dot ] oclug [ dot ] on [ dot ] ca
> http://oclug.on.ca/mailman/listinfo/linux

references