Find files opened by a processlast modified: | 1 min read #linux
You can find the files that a specific process has opened.
Get the PID
Find the PID of the process by running the following command. Alternatively you
ps aux | grep <program> but this command only returns what you need:
$ ps -C <program> -o pid=
List the open files for that process
$ ls -l /proc/<pid>/fd
If the process you want to inspect is a privileged process, you will need elevated privileges to view its open files.