To do this I use netstat command
to list all open ports:
$ sudo netstat -tuplen
to list open ports and unix sockets:
$ sudo netstat -nlp
note: using sudo you will get more info
to list all open ports:
$ sudo netstat -tuplen
to list open ports and unix sockets:
$ sudo netstat -nlp
note: using sudo you will get more info