Created
November 28, 2015 03:36
-
-
Save jasperf/c189ae315719f1e5ddd5 to your computer and use it in GitHub Desktop.
Check to see what process is listen on a certain port #osx #centos #netstat #lsof
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
##OSX | |
## Lsof or list open files | |
lsof -n -i4TCP:8085 | grep LISTEN | |
##CentOS | |
##netstat or network tools | |
##$PORT is port of choice | |
netstat -ln |grep $PORT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment