Command to view files and network connection attached to a process

by Selva 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

Tagged in:

906
like
0
dislike
0
mail
flag

You must LOGIN to add comments