DEV Community

Down Boy! (Kill processes by Port)

F1LT3R on May 10, 2019

Need to kill processes by port? Try this... Setup Save this bash script as downboy to your bin directory: #!/bin/bash for PORT in ...
Collapse
 
ferricoxide profile image
Thomas H Jones II

Back in the mists of time, I recall that either the IRIX or Solaris implementation of fuser had the ability to kill processes by port.

Collapse
 
mlennox profile image
Mark Lennox

Will save a lot of ps -ef | grep on my machine - I needed this, thanks!