$ sudo netstat -atp tcp| grep -i listen
or
$ sudo lsof -i -P | grep -i listen
Last updated 2 years ago