26
11
lsof -p 12345
will list all the files opened by process whose pid is 12345 but only for a particular instant of time.
How can we continuously monitor a process from the start to end(until process is terminated) to list/show every single file accessed by the process during its whole lifetime?
How do I monitor opened files of a process in realtime? – phuclv – 2017-05-22T03:36:42.063