In your terminal or .zshrc
, etc:
function killport {
echo '🚨 Killing all processes at port' $1
lsof -ti tcp:$1 | xargs kill
}
Usage
killport 8080
# 🚨 Killing all processes at port 8080
In your terminal or .zshrc
, etc:
function killport {
echo '🚨 Killing all processes at port' $1
lsof -ti tcp:$1 | xargs kill
}
Usage
killport 8080
# 🚨 Killing all processes at port 8080