UNIX

Network Diagnostics

Show all open ports

netstat -lptun

# Possible prerequisites
apt-get install net-tools    # Debian

Show all open sockets

ss -x -a