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

[OCLUG-Tech] 64 bit executable check

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