Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 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.

1 Answer 1

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.