J.J. Beam
J.J. Beam

Reputation: 3059

How to show in terminal all processes which use ports with one command?

How to show in terminal all processes which use ports with one command? ( show ports as well) I guess it should be something like lsof... but need to specify a port, but I need all ports used altogether with processes

Upvotes: 0

Views: 680

Answers (1)

mnikolic
mnikolic

Reputation: 602

You may use

sudo netstat -tup

It will display all ports and processes that opened them.

Upvotes: 1

Related Questions