macOS / binaries /

fuser

/usr/bin/fuser
List process ids of all processes that have one or more files open

The fuser utility shall write to standard output the process IDs of processes running on the local system that have one or more named files open. For block special devices, all processes using any file on that device are listed.

source: man