Skip to the content.

Determine Which Process Is Using a File

We can use lsof command to determine which process is using a file.

Usage

$ lsof file/path

Source: Unix - StackExchange