Dave's Brain

Browse - Computer Tips - How can I kill all processes using a file?

Date: 2009mar31
OS: Linux

Q.  How can I kill all processes using a file?

A.  Do this:

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

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.