Created
June 7, 2019 16:36
-
-
Save jcollum/ab8ebd854b844a4dd10bc3ebaf41c90d to your computer and use it in GitHub Desktop.
find by port, cross platform
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
port=3001 | |
kill $(netstat -tuwanp | grep $port | awk '{print $7}' | cut -d "/" -f 1 ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment