Created
September 20, 2018 18:10
-
-
Save SergioGeeK7/8b19b2886020e393d45ec6fd80699356 to your computer and use it in GitHub Desktop.
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 | |
cat # Concatenate and print files to stdout | |
| grep |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment