How to check for open or listening ports

Forums: 

How to check for open or listening ports and services


Using the netstat command:
netstat -tulpn
Using the ss command:
ss -tulpn