Check which process is listening on a specific port

  $ netstat -nlp | grep 8080
  $ netstat -nlp tcp | grep 8080 (BSD)
click the source code to copy