View all open file by a process in Linux/Unix

Written on 15 April 2015

To view all open file by process

ls -l /proc/$pid/fd/
lsof -a -p

To get pid of a program use pgrep program

Read more on Linux