Still by VisualMode
Home Blogmarks TILs Consulting
Home Blogmarks TILs Consulting
← Back to all TILs

Kill Everything Running On A Certain Port

unix Written October 17, 2015

You can quickly kill everything running on a certain port with the following command.

sudo kill `sudo lsof -t -i:3000`

This gets a list of pids for all the processes and then kills them.

source

Other posts like this

  • Find The Process Using A Specific Port mac
  • Kill The Current Session tmux
  • Check If A Port Is In Use unix
  • Kill All Your tmux Sessions tmux
  • Interactively Kill A Process With fkill workflow