Complete Reference with Copy-Paste Examples
Part of The Direct Path to Linux Ubuntu
— free for all students and developers.
Every computer is networked. Understanding how TCP/IP, DNS, and routing work is essential for debugging any connectivity issue, anywhere.
Cloud VPC design, Kubernetes networking, firewall rules — all require CIDR subnetting knowledge. This is a daily sysadmin and DevOps skill.
ping, traceroute, dig, ss, tcpdump, nmap — master these 7 tools and you can diagnose virtually any network problem from the Linux command line.
WireGuard, iptables, ufw — secure your servers, connect remote teams, and protect services from the internet with these essential tools.
Run Networking:
# Network tools sudo apt install iproute2 net-tools dnsutils \ nmap tcpdump traceroute mtr-tiny \ wireguard iperf3 netcat-openbsd # Diagnostics ping -c 4 8.8.8.8 # connectivity test traceroute mywebuniversity.com # trace path mtr --report mywebuniversity.com # trace + latency ss -tlnp # listening ports dig mywebuniversity.com +short # DNS lookup nmap -sV -p 22,80,443 host # port scan # Firewall sudo ufw allow 443/tcp && sudo ufw enable # WireGuard VPN sudo apt install wireguard wg genkey | sudo tee /etc/wireguard/private.key sudo wg-quick up wg0 # Python pip install dnspython