Adnan Zahid
Adnan Zahid

Reputation: 15

Finding TCP connections with pids

I tried to display all the TCP connections with pids on ubuntu terminal but am not able to do it. Can someone tell a single command to find all tcp connections with pids on ubuntu terminal ?

Upvotes: 0

Views: 1083

Answers (1)

mtjk
mtjk

Reputation: 26

Take a look at lsof man page. I found:

[sudo] lsof -i TCP

Upvotes: 1

Related Questions