We can use lsof command to determine which process is using a file.
lsof
$ lsof file/path
Source: Unix - StackExchangearrow-up-right
Last updated 1 year ago