Dave's Brain

Browse - computer tips - 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 and don't have this command, do:

	yum install psmisc
What this info useful to you? You can donate to say thanks

Add a comment

Sign in to add a comment
Copyright © 2008-2012, 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.
Advertisements: