LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Finding location of a program with PID known. (https://www.linuxquestions.org/questions/linux-newbie-8/finding-location-of-a-program-with-pid-known-864641/)

maobin 02-23-2011 07:33 PM

Finding location of a program with PID known.
 
Hi,
I've used ps -p to find a certain program. but how can i find the location of this program? as in the path to this program.

PenGUiN_6_1 02-23-2011 07:35 PM

Guess...
do a 'whereis' or 'locate' on the associated program...just a guess

jlinkels 02-23-2011 07:43 PM

which <program> gives the program in the current path.

jlinkels

maobin 02-23-2011 07:47 PM

Quote:

Originally Posted by PenGUiN_6_1 (Post 4269095)
Guess...
do a 'whereis' or 'locate' on the associated program...just a guess

thanks alot.. was trying to use find but no results.. din know abt whereis and locate. Thanks :)


All times are GMT -5. The time now is 02:56 AM.