Comment Comment by corn13read2 I made an amazing CLI utility for this! Simply add this to your .bashrc or .zshrc file:alias portkill='function killit(){kill -9 "$(lsof -t -i:$1)" &>/dev/null || true};killit'then run portkill PORT parent corn13read2 3 years ago
alias portkill='function killit(){kill -9 "$(lsof -t -i:$1)" &>/dev/null || true};killit'
then run portkill PORT