Last updated 8 months ago
We can use lsof command to determine which process is using a file.
lsof
$ lsof file/path
Source: