Results 1 to 5 of 5
hi all,
i have a many process running in my machine with similar command and the command is 'gzip'. it is running by a program in a file. how will ...
- 12-07-2009 #1Just Joined!
- Join Date
- Dec 2009
- Posts
- 3
finding the file behind a process
hi all,
i have a many process running in my machine with similar command and the command is 'gzip'. it is running by a program in a file. how will i find out the file which is behind this command.
- 12-07-2009 #2Linux Guru
- Join Date
- Nov 2007
- Posts
- 1,695
If you have a "program" running that is starting the gzip processes...
Look at the parent PID of the running gzip to see what process started it.
- 12-08-2009 #3Just Joined!
- Join Date
- Dec 2009
- Posts
- 3
Thank you for the reply,
is there a way to find the code file behind?
- 12-11-2009 #4Just Joined!
- Join Date
- Dec 2009
- Posts
- 1
Try the "lsof" command. Use "ps -ef" to find the pid of the process in question and then execute "lsof -p <pid#>". This should list all open files for the process.
- 12-14-2009 #5Just Joined!
- Join Date
- Dec 2009
- Posts
- 3
Thank you so much. this is what i was looking for.


Reply With Quote