- How can I kill all processes using a file?
How can I kill all processes using a file?
fuser -k <file>
It works for a port too:
fuser -k -n tcp 80
If you are running RedHat/Fedora/CentOS and don't have this command, do:
dnf install psmisc
Copyright © 2008-2021, dave. Code samples on Dave's Brain is licensed under the
Creative Commons Attribution 2.5 License.
other material, including English text has all rights reserved.