ports

Open ports

netstat -ltnp

List all tcp ports using netstat -at
netstat -at

check particular port
netstat -plnt | grep ':80'

use new command ss
ss -ptn

Listening ports
ss -ltpn