Skip to content

Instantly share code, notes, and snippets.

View HarrisHan's full-sized avatar
🎯
Focusing

Harris HarrisHan

🎯
Focusing
View GitHub Profile
netstat -vanp tcp | grep 3000
sudo lsof -i tcp:3000
kill -9 PID
kill $(lsof -t -i :YOUR_PORT_NUMBER)
echo 'free-port() { kill "$(lsof -t -i :$1)"; }
kill-port() { kill -kill "$(lsof -t -i :$1)"; }' \
>> ~/.bashrc && source ~/.bashrc