2

I have processes like that:

24471 myuser     17   0     0    0    0 Z  3.0  0.0   0:00.09 [php] <defunct>
24488 myuser     17   0     0    0    0 Z  3.0  0.0   0:00.09 [php] <defunct>

How can I find file path?

Thanks.

migrated from stackoverflow.com Dec 8 '11 at 21:35

This question came from our site for professional and enthusiast programmers.

  • Peek into /proc/24471/cmdline or something. – mario Dec 8 '11 at 21:27
3

There is a symbolic link in /proc/$PROCESSID/exe to the executable file of a process.

Hopefully you can type

ls -l /proc/24471/exe

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy