This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |