1

Under Linux, which command can show the ports currently being listened to by services?

1 Answer 1

3

The -p option to netstat and ss will display the associated process of each socket.

sudo netstat -lptun

sudo ss -lp

You can also use lsof:

sudo lsof -iTCP -sTCP:LISTEN

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .