Shihui Guo

lsof - list open files of a process

This command is really helpful yesterday because when I am running nginx, the access and error log is not written into the files I have specified. Using this command, I found that actually nginx are openning other two log files.

sudo lsof -c nginx