How would I find out all the files a particular process accesses?
I am using Ubuntu 9.04.
lsof will list open files and associated process IDs. It lists everything if no options are given.
There is an option,
To list only regular files grep can be used to filter the output of lsof:
If it needs to be more robust than with grep then the
It depends on your requirements.