1843834 Members
4538 Online
110224 Solutions
New Discussion

Kill -9 processes

 
Inesa Clinko
Advisor

Kill -9 processes

There are a lot fopr processes found my
/dir. How I can find all of them and kill,
using simple sh-script.
3 REPLIES 3
Peter Godron
Honored Contributor

Re: Kill -9 processes

Inesa,
After reading
man fuser please test beforehand:
fuser -c -k
Regards
Peter Godron
Honored Contributor

Re: Kill -9 processes

Inesa,
the command of couse should be:
fuser -c /dir -k
Also, you have to be root to do this,as you may be killing other users processes.
Regards
Inesa Clinko
Advisor

Re: Kill -9 processes

Thanx. :)