list open port

$ sudo netstat -atp tcp| grep -i listen

or

$ sudo lsof -i -P | grep -i listen

Last updated