Skip to content

Instantly share code, notes, and snippets.

@jasperf
Created November 28, 2015 03:36
Show Gist options
  • Save jasperf/c189ae315719f1e5ddd5 to your computer and use it in GitHub Desktop.
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
##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