Command to view files and network connection attached to a process
by Selva[ Edit ] 2009-10-30 14:27:58
In linux some process ( PHP or perl ) may run for long time and you may want to know the files used and network (IP address from where the process is invoked) attached to this process ,for this you can use the command
lsof
Example :
lsof -p 5683
This shows the files and IP attached to process with PID 5683