Try doing this as a starter : lsof -p
To see open files, we can use the lsof utility. It stands for “list open files” and definitely reveals its purpose. It can really show any type of open files, ...
Depending on your exact needs, you might want to look into inotify and/or FAM/ GAMIN solutions.
You can trace a running process, or instruct strace to start it for you. screenshot of ... screenshot of strace monitoring file access and activity.
For information about which files accessed by process (from here):
Commands from the audit or the inotify-tools package can track file access. See my answer to a very similar question: Unix - Historically who all opened a ...
On Linux there is an audit RPM named audit, which provides auditd service to monitor the processes and the commands as well. Using audit RPM we can audit ...
How to Install Strace Process Monitoring Tool in Linux
How to track all files a process opens in its lifetime · linux filesystems lsof. I am aware of using lsof for checking the files currently accessed by a process. Does ...
Process cannot access the file because another process has locked a portion of the file. dbopen db.rev failed