November 14, 2022

Check files used/opened by a process

Useful for debugging:

$ ps aux | grep $PROCESS_NAME $ ls -l /proc/$PID/fd $ sudo lsof -i -a -p $PID