Ps show the PID pgrep nginx show the process that R/W on a file lsof /path Ctrl + c key sends SIGINT to the terminal’s foreground process group, not to every process that has the file open.