[ubuntu-in] How to check if a running process is a 32 or 64 bit image?

Vishal Rao vishalrao at gmail.com
Sun Aug 3 14:51:36 BST 2008


On Sun, Aug 3, 2008 at 6:47 PM, Gourav Shah <freedomyug at gmail.com> wrote:
> use "file" command
>
> e.g.
>
> $ ps aux | grep -i firefox
>     6363  9.8  7.0 577012 141764 ?       Sl   18:37   0:45
> /usr/lib/firefox-3.0/firefox
>     6700  0.0  0.0   5164   888 pts/1    R+   18:45   0:00 grep -i firefox
>
> $ file /usr/lib/firefox-3.0/firefox
> /usr/lib/firefox-3.0/firefox: ELF 64-bit LSB executable, x86-64, version 1
> (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), stripped

Thanks, that looks helpful... any shorter/direct way to check the
running image which is in memory rather than going to the file?



More information about the ubuntu-in mailing list