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

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton