[geeks] stupid linux question

Jochen Kunz jkunz at unixag-kl.fh-kl.de
Sun Aug 11 14:34:12 CDT 2002


On 2002.08.09 20:55 Joshua D Boyd wrote:

> Boy, I feel stupid:
> jdboyd at cs ~ 359 > find / -name 'sendmail'
> /usr/sbin/sendmail
$ whereis sendmail
or 
$ locate sendmail
?

When you wane see what executable a process is running under Linux you
can do:
$ cat /proc/[PID]/maps
This gives you the memory map of the process. The executable is the
first mmap(2)ed file. 
-- 



tsch,
         Jochen

Homepage: http://www.unixag-kl.fh-kl.de/~jkunz/



More information about the geeks mailing list