Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-23-2011, 07:33 PM   #1
Registered: Feb 2011
Posts: 42

Rep: Reputation: 0
Finding location of a program with PID known.

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, 07:35 PM   #2
Registered: Oct 2006
Location: Brunswick, MD
Distribution: gNewSense 2.3 (deltah) i386
Posts: 57

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

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

Old 02-23-2011, 07:47 PM   #4
Registered: Feb 2011
Posts: 42

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


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 11:24 AM
logging off by script or finding PID of session bob_man_uk Red Hat 6 10-27-2005 03:37 AM
finding pid with program name durden2.0 Linux - Newbie 1 08-04-2003 08:38 PM
Finding the first pid corrierich Linux - General 2 03-06-2003 02:43 AM
finding a PID and killing it tangle Linux - General 3 01-25-2003 10:14 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:40 PM.

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