ip addr shows IP addresses. ping tests connectivity. dig checks DNS resolution. ss -tlnp shows open ports. curl -I URL tests HTTP responses. traceroute shows the network path to a destination host.
Network Commands
ip addr # show IP addresses
ip route # routing table
curl https://example.com # HTTP request
wget https://file.tar.gz # download file
ping google.com # test connectivity
traceroute google.com # trace route
nslookup example.com # DNS lookup
dig example.com # detailed DNS
ss -tlnp # listening ports
netstat -tlnp # (older alternative)