We can use lsof command to determine which process is using a file.
lsof
lsof file/path
Source: Unix - StackExchange
Last updated 4 months ago