fuser -k <file>It works for a port too:
fuser -k -n tcp 80If you are running RedHat/Fedora/CentOS and don't have this command, do:
dnf install psmisc
fuser -k <file>It works for a port too:
fuser -k -n tcp 80If you are running RedHat/Fedora/CentOS and don't have this command, do:
dnf install psmisc