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