Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I'm running a Node.JS application and need to figure out if something is using a certain port.

How can I do this from the linux command line?

share|improve this question

marked as duplicate by Dave M, Kevin Panko, Doktoro Reichard, Garrett, Scott Jul 15 '14 at 21:50

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 1 down vote accepted

There must be a more elegant way, but when in a hurry, I just run netstat | grep port_number

Yes, there are more elegant ways...

Linux List The Open Ports And The Process That Owns Them

sudo lsof -i
sudo netstat -lptu
sudo netstat -tulpn
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.