LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How can we list all the files used by a particular process (https://www.linuxquestions.org/questions/programming-9/how-can-we-list-all-the-files-used-by-a-particular-process-516567/)

indian 01-05-2007 07:44 AM

How can we list all the files used by a particular process
 
well I want to know programatically(if possible) or through a Linux command(if there is) the files that are been used by a process. I am not looking for any code, just the "way" (if there is any)

Regards

Guttorm 01-05-2007 07:54 AM

Hi

The command "lsof" lists all open files and the first column is program's name - so it's easy to use stuff like grep on it.


All times are GMT -5. The time now is 11:15 AM.