In Mac OS X, I could use the Activity Monitor program to see if a running program/process is 64-bit. How do I do that in a Linux OS, regardless of flavour? Thanks.

link|improve this question

78% accept rate
feedback

1 Answer

up vote 12 down vote accepted

You can use the file command to check out what format the executable file has.

eg:

$ file /bin/bash
/bin/bash: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
link|improve this answer
It works, thanks! – hpy May 9 '11 at 5:12
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.