How to list a process opened file

First use ps command to find the pid of the process you would like to monitor.

Then use

sudo lsof -p pid -P
原文地址:https://www.cnblogs.com/zhaofeng-shu33/p/12187341.html