LinuxQuestions.org
Help answer threads with 0 replies.
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 06-28-2004, 12:23 AM   #1
beegster
LQ Newbie
 
Registered: Feb 2003
Posts: 4

Rep: Reputation: 0
Lightbulb Problem identifying process


HI All

Is there an 'easish' way to find out what directory/files a process is using? Before you all jump in and say just do a long listing in ps I will give you an example that isnt that straight forward. If for example you have a java process that is running a Java application in its virtual machine, how then do you tell which directory the Java Application was originally executed from?

ANy Help much appreciated.
 
Old 06-28-2004, 01:25 AM   #2
Jerre Cope
Member
 
Registered: Oct 2003
Location: Texas (central)
Distribution: ubuntu,Slackware,knoppix
Posts: 323

Rep: Reputation: 37
Try greping lsof
 
Old 06-28-2004, 01:36 AM   #3
jarib
Member
 
Registered: Jun 2003
Location: British Columbia
Distribution: Slackware
Posts: 112

Rep: Reputation: 15
Ctrl/Esc brings up the process table. On KDE anyways
 
Old 06-28-2004, 03:25 AM   #4
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
This might not be any help, but I think I saw something like that in "man proc" which talks about the /proc "virtual filesystem"
 
Old 06-28-2004, 10:50 PM   #5
beegster
LQ Newbie
 
Registered: Feb 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks everyone. I will give all of these options a try
 
Old 06-28-2004, 10:57 PM   #6
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
ps with the a option will give the full path. I always use
ps aux
 
  


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
Identifying Traffic azcoder2 Linux - Networking 2 10-17-2005 03:36 PM
identifying component's etc bigjohn Linux - General 4 09-23-2004 11:32 PM
Identifying Processes Transition Linux - General 4 02-18-2004 04:08 PM
problem with binding process and than execute another process chapa Programming 0 08-27-2003 04:47 AM
Identifying Apache Thinkgeekness Linux - Software 1 01-03-2003 10:46 PM


All times are GMT -5. The time now is 03:49 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