LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-27-2004, 11:23 PM   #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, 12: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, 12: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, 02: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, 09: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, 09: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: 47
ps with the a option will give the full path. I always use
ps aux
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:23 AM.

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
Open Source Consulting | Domain Registration