LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-23-2011, 08:33 PM   #1
maobin
Member
 
Registered: Feb 2011
Posts: 42

Rep: Reputation: 0
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.
 
Old 02-23-2011, 08:35 PM   #2
PenGUiN_6_1
Member
 
Registered: Oct 2006
Location: Brunswick, MD
Distribution: gNewSense 2.3 (deltah) i386
Posts: 57

Rep: Reputation: 22
Guess...
do a 'whereis' or 'locate' on the associated program...just a guess
 
Old 02-23-2011, 08:43 PM   #3
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,493

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
which <program> gives the program in the current path.

jlinkels
 
Old 02-23-2011, 08:47 PM   #4
maobin
Member
 
Registered: Feb 2011
Posts: 42

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by PenGUiN_6_1 View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding PID ohswrestler2009 Linux - Newbie 4 10-26-2007 12:24 PM
logging off by script or finding PID of session bob_man_uk Red Hat 6 10-27-2005 04:37 AM
finding pid with program name durden2.0 Linux - Newbie 1 08-04-2003 09:38 PM
Finding the first pid corrierich Linux - General 2 03-06-2003 03:43 AM
finding a PID and killing it tangle Linux - General 3 01-25-2003 11:14 PM


All times are GMT -5. The time now is 06:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration