netstat Check ports that are open sudo netstat -tulpn | grep :443 # or sudo netstat --tcp --udp --listening --program --numeric sudo ss -tunl | grep -E "(State|LISTEN)"