Identify the files opened a particular process on linux

Posted by aladine on Stack Overflow See other posts from Stack Overflow or by aladine
Published on 2010-04-21T09:01:42Z Indexed on 2010/04/21 9:23 UTC
Read the original article Hit count: 189

Filed under:
|
|

I need a script to identify the files opened a particular process on linux

To identify fd :

>cd /proc/<PID>/fd; ls |wc –l  

I expect to see a list of numbers which is the list of files descriptors' number using in the process. Please show me how to see all the files using in that process. Thanks.

© Stack Overflow or respective owner

Related posts about linux

Related posts about pid