g4ur4v
g4ur4v

Reputation: 3288

Find process that are listening to a port without sudo privileges

How to find the process ID's of the processes that are listening to a particular port , when you don't have the sudo privilieges ?

Upvotes: 3

Views: 3607

Answers (2)

dmatej
dmatej

Reputation: 1586

I needed to list processes on Jenkins which are listening on a port, and when they started:

lsof -t -i :4848 | xargs ps -o pid,etime,start,command -p

Upvotes: 0

Barmar
Barmar

Reputation: 780663

You can find your own processes with:

lsof -i :port#

Upvotes: 1

Related Questions