Display process IDs currently using files or sockets. More information: https://manned.org/fuser.
fuser path/to/file_or_directory
USER, PID, ACCESS and COMMAND):fuser --verbose path/to/file_or_directory
fuser --namespace tcp port
SIGKILL signal):fuser --kill path/to/file_or_directory
fuser --mount path/to/file_or_directory
fuser --kill port/tcp