Skip to content

Instantly share code, notes, and snippets.

@jasperf
Created November 28, 2015 03:36
Check to see what process is listen on a certain port #osx #centos #netstat #lsof
##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