Commands for listing listening ports and the processes that own them.

## Check which ports are open

The following command helps find which process is using which port:

```shell
netstat -plant
```

The following command prints open network files (sockets):

```shell
lsof -i
```