List All Open Network Ports

Type: ss -l ,output should be like showing below:

Linux hack

We would like to show you the ss command to inspect the socket statistics. This is more reliable command that displays more TCP and state information than any other tools. The ss command provides information about

* All TCP sockets.
* All UDP sockets.
* All established ssh / ftp / http / https connections.
* All local processes connected to X server.
* All the tcp sockets in state FIN-WAIT-1 and much more.

Type the following to see process named using open socket: ss -pl

Find out who is responsible for opening socket / port # 10000: ss -lp | grep 10000

Posted on: 01/11/2009

If you want to leave a comment please Login or Register