I am writing simple program for my Ubuntu 10.04.
I want to see which files were used by processes. Where I can see what file was requested by the process?
I am writing simple program for my Ubuntu 10.04. I want to see which
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t know of any log files which list past files that had been opened by a process but I know of a couple ways to determine what files a process opens.
Using strace (system call trace) you can find out what files a program opens:
You could also try using lsof (list open files) to determine what files are currently open by running processes.